Skip to content

process_id

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.

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. i32 on 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