pub enum ReservationError {
Registry(RecoveryError),
Record(OwnerRecordError),
Lock(OwnerLockError),
Identity(String),
Write(Error),
WaitTimedOut {
waited: Duration,
holder_pid: Option<i64>,
},
}Expand description
What: A reservation failure: the registry, a lock record, or a request file could not be read or written. Why: Replay fails the transaction with the underlying reason instead of landing without the reservation.
In TS you’d write (pseudocode):
throw new CommitTransactionGitError(...);Variants§
Registry(RecoveryError)
The transaction registry could not be listed or inspected.
Record(OwnerRecordError)
The reservation lock’s record could not be read.
Lock(OwnerLockError)
The reservation lock could not be taken or released.
Identity(String)
The holder’s process identity could not be probed.
Write(Error)
A request file or its directory could not be written.
WaitTimedOut
A live reservation holder or an older live requester kept the slot until the wait limit ran out.
Trait Implementations§
Source§impl Debug for ReservationError
impl Debug for ReservationError
Auto Trait Implementations§
impl !RefUnwindSafe for ReservationError
impl !UnwindSafe for ReservationError
impl Freeze for ReservationError
impl Send for ReservationError
impl Sync for ReservationError
impl Unpin for ReservationError
impl UnsafeUnpin for ReservationError
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