pub enum ProcessState {
Alive,
Unverified(String),
Gone(String),
}Expand description
What layers 1 and 2 say about the process a record names.
Only Gone licenses unlinking the record. Unverified is a reading that failed, which says
nothing about the process either way.
Variants§
Alive
The pid is held by the process that wrote the record.
Unverified(String)
The pid is held and its start time could not be read, so whether the holder wrote the record is unknown. The record is kept and the pid is never signalled; the string is the reason.
Gone(String)
The process is gone — nothing holds the pid, or the process holding it started at another time than the recorded one. The string says which.
Implementations§
Source§impl ProcessState
impl ProcessState
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Whether the record still names a running capsule: Alive, or Unverified because
something holds the pid and it may be the capsule.
A reading of the state already taken; it prunes and signals nothing. Only the negation,
Gone, licenses unlinking the record.
Trait Implementations§
Source§impl Clone for ProcessState
impl Clone for ProcessState
Source§impl Debug for ProcessState
impl Debug for ProcessState
impl Eq for ProcessState
Source§impl PartialEq for ProcessState
impl PartialEq for ProcessState
impl StructuralPartialEq for ProcessState
Auto Trait Implementations§
impl Freeze for ProcessState
impl RefUnwindSafe for ProcessState
impl Send for ProcessState
impl Sync for ProcessState
impl Unpin for ProcessState
impl UnsafeUnpin for ProcessState
impl UnwindSafe for ProcessState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more