process_id
Module: process_id
Section titled “Module: process_id”Contents
Section titled “Contents”Structs
UserProcessId- Operating-system process identifier for spawned user processes.UserProcessIdError- Error returned when converting a raw integer into [UserProcessId].
firma_runtime_state::process_id::UserProcessId
Section titled “firma_runtime_state::process_id::UserProcessId”Struct
Operating-system process identifier for spawned user processes.
Invariants
Section titled “Invariants”An instance of UserProcessId is guaranteed to be:
- Greater than 0. Process id 0 is valid on our supported platforms, but it’s never allowed for user processes.
- Fit in the range used by the underlying platform to represent
process ids (e.g.
i32on Linux).
Tuple Struct: ()
Methods:
fn new(raw: u32) -> Option<Self>- Construct a process ID from its raw integer representation.fn get(self: Self) -> u32- Return the raw integer representation.fn process_exists(self: Self) -> std::io::Result<bool>- Return whether this process ID identifies an existing process.
Traits: Eq, Copy
Trait Implementations:
- Hash
fn hash<__H>(self: &Self, state: & mut __H)
- Ord
fn cmp(self: &Self, other: &UserProcessId) -> $crate::cmp::Ordering
- PartialOrd
fn partial_cmp(self: &Self, other: &UserProcessId) -> $crate::option::Option<$crate::cmp::Ordering>
- Display
fn fmt(self: &Self, f: & mut fmt::Formatter) -> fmt::Result
- PartialEq
fn eq(self: &Self, other: &UserProcessId) -> bool
- TryFrom
fn try_from(value: u32) -> Result<Self, <Self as >::Error>
- Deserialize
fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error>
- Clone
fn clone(self: &Self) -> UserProcessId
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Serialize
fn serialize<S>(self: &Self, serializer: S) -> Result<<S as >::Ok, <S as >::Error>
firma_runtime_state::process_id::UserProcessIdError
Section titled “firma_runtime_state::process_id::UserProcessIdError”Struct
Error returned when converting a raw integer into [UserProcessId].
Unit Struct
Traits: Error, Eq, Copy
Trait Implementations:
- PartialEq
fn eq(self: &Self, other: &UserProcessIdError) -> bool
- Clone
fn clone(self: &Self) -> UserProcessIdError
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result