pub enum OwnerLockError {
Record(OwnerRecordError),
Identity(ProcessIdentityError),
Random(RandomSourceError),
Io {
operation: &'static str,
path: PathBuf,
error: Error,
},
OwnershipChanged(PathBuf),
}Expand description
What: Why an owner-lock operation failed. Why: Each failure stops the caller with the lock named; none is a reason to delete a lock that might belong to a live owner.
In TS you’d write (pseudocode):
class OwnerLockError extends Error {}Variants§
Record(OwnerRecordError)
The blocking lock’s record is malformed or unreadable.
Identity(ProcessIdentityError)
The current process has no identity, or an owner’s liveness could not be decided.
Random(RandomSourceError)
No random token could be made.
Io
A filesystem step failed.
Fields
OwnershipChanged(PathBuf)
The lock named another owner when this holder released it.
Trait Implementations§
Source§impl Debug for OwnerLockError
impl Debug for OwnerLockError
Auto Trait Implementations§
impl !RefUnwindSafe for OwnerLockError
impl !UnwindSafe for OwnerLockError
impl Freeze for OwnerLockError
impl Send for OwnerLockError
impl Sync for OwnerLockError
impl Unpin for OwnerLockError
impl UnsafeUnpin for OwnerLockError
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