pub enum ProcessIdentityError {
MalformedStat {
pid: i64,
},
Io {
pid: i64,
error: Error,
},
UnsupportedPlatform,
CurrentUnavailable,
}Expand description
What: Why a birth identity could not be decided. Absence (the process exited) is not an error; these are states the incumbent also throws on. Why: A lock acquirer that cannot tell whether an owner lives must stop, not guess.
In TS you’d write (pseudocode):
class ProcessIdentityError extends TypeError {}Variants§
MalformedStat
/proc/<pid>/stat has no ) or no start-time field.
Io
The record could not be read for a reason other than the process being gone.
UnsupportedPlatform
This platform has no identity source.
The current process has no identity, so it cannot own a lock.
Trait Implementations§
Source§impl Debug for ProcessIdentityError
impl Debug for ProcessIdentityError
Source§impl Display for ProcessIdentityError
What:
Human-readable text for each failure.
Why:
Diagnostics name the process and the reason in plain words.
impl Display for ProcessIdentityError
What: Human-readable text for each failure. Why: Diagnostics name the process and the reason in plain words.
In TS you’d write (pseudocode):
error.messageAuto Trait Implementations§
impl !RefUnwindSafe for ProcessIdentityError
impl !UnwindSafe for ProcessIdentityError
impl Freeze for ProcessIdentityError
impl Send for ProcessIdentityError
impl Sync for ProcessIdentityError
impl Unpin for ProcessIdentityError
impl UnsafeUnpin for ProcessIdentityError
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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