pub enum PidFile {
Absent,
Malformed(String),
Unreadable(String),
Owner(i64, PidOwner),
}Expand description
What:
Git’s core.lockfilePid file beside the lock.
Why:
PidFileEvidence.
In TS you’d write (pseudocode):
type PidFileEvidence = { kind: 'absent' } | { kind: 'malformed'; text } | { kind: 'unreadable'; reason } | { kind: 'owner'; pid; owner };Variants§
Absent
No PID file exists.
Malformed(String)
The file does not hold pid <n>;
the first characters of its text.
Unreadable(String)
The file exists but could not be read.
Owner(i64, PidOwner)
The file names a PID.
Trait Implementations§
impl StructuralPartialEq for PidFile
Auto Trait Implementations§
impl Freeze for PidFile
impl RefUnwindSafe for PidFile
impl Send for PidFile
impl Sync for PidFile
impl Unpin for PidFile
impl UnsafeUnpin for PidFile
impl UnwindSafe for PidFile
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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