pub enum OwnerRecordError {
Malformed(PathBuf),
Unreadable(PathBuf, Error),
}Expand description
What: Why a lock’s record could not be judged. Why: A malformed or unreadable record must stop the acquirer: it might belong to a live owner, and the wrapper never deletes a lock it cannot prove dead.
In TS you’d write (pseudocode):
class OwnerLockError extends Error {}Variants§
Malformed(PathBuf)
The record exists but is not a valid owner record.
Unreadable(PathBuf, Error)
The record could not be read.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OwnerRecordError
impl !UnwindSafe for OwnerRecordError
impl Freeze for OwnerRecordError
impl Send for OwnerRecordError
impl Sync for OwnerRecordError
impl Unpin for OwnerRecordError
impl UnsafeUnpin for OwnerRecordError
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