• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

luser / read-process-memory / 37
89%
master: 86%

Build:
Build:
LAST BUILD BRANCH: feature/try-from-refactoring
DEFAULT BRANCH: master
Ran 03 May 2019 07:20PM UTC
Jobs 1
Files 1
Run time 47min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
37

Pull #10

travis-ci

web-flow
TryFrom refactoring & misc updates

During review of #7, several possible improvements were revealed.
First of all, now that
[TryFrom](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) is
stable, the auxiliary `TryIntoProcessHandle` trait is no longer
needed.

This change
* Refactors the library to use `TryFrom` trait for `Pid ->
  ProcessHandle` and `Child -> ProcessHandle` conversions.

  `TryFrom` trait implementation must reference a type defined in this
  crate, so either `ProcessHandler` or `Pid` had to be converted from
  a type alias to a 1 field tuple.

  It seems like users interact with `ProcessHandle` less often than
  with `Pid`, so converting `ProcessHandle` won't sacrifice ergonomics
  much.

  Example (retrieving the process handle):

  Before:
  ```rust
    let handle = pid.try_into_process_handle()?;
  ```

  After:
  ```rust
    let handle: ProcessHandle = pid.try_into()?;
  ```

* Adds `--verbose` flags to Cirrus CI scripts

* Adds Cirrus CI badge to readme.

* Reconfigures Appveyor CI to use rustup directly, since the old
  script downloaded v1.16 instead of current stable (v1.34)
Pull Request #10: TryFrom refactoring & misc updates

66 of 73 relevant lines covered (90.41%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37.1 03 May 2019 07:20PM UTC 0
90.41
Travis Job 37.1
Source Files on build 37
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #37
  • Pull Request #10
  • PR Base - master (#30)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc