pub enum LockAttempt {
Acquired(VolumeLock),
Busy,
Unavailable,
}Expand description
The result of asking for the volume lock.
Variants§
Acquired(VolumeLock)
This node has it.
Busy
Another node on the volume is migrating. Wait.
No lock is possible here at all, so proceed unserialised.
Kept distinct from Busy because conflating the two silently strands any node
whose parent directory is not writable: it would wait forever for a lock nobody
holds.
Auto Trait Implementations§
impl Freeze for LockAttempt
impl RefUnwindSafe for LockAttempt
impl Send for LockAttempt
impl Sync for LockAttempt
impl Unpin for LockAttempt
impl UnsafeUnpin for LockAttempt
impl UnwindSafe for LockAttempt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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