use-process-status 0.1.0

Primitive process status and outcome metadata for RustUse
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 19 items with examples
  • Size
  • Source code size: 10.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 595.58 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-os
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-process-status

Primitive process status and lifecycle vocabulary.

use-process-status stores process state, optional numeric status codes, optional messages, and optional process identity as plain metadata. It does not execute processes, model stdout or stderr, define CLI exit-code constants, parse shell status, decode OS signals, log, or render diagnostics.

use use_process_id::ProcessId;
use use_process_status::{ProcessOutcome, ProcessState, ProcessStatus};

let status = ProcessStatus::new(ProcessState::Exited).with_status_code(0);
let outcome = ProcessOutcome::for_process(ProcessId::new(7).unwrap(), status);

assert_eq!(outcome.status().status_code(), Some(0));