pub enum CaptureOrderError {
Store(CaptureError),
Lock(OwnerLockError),
Git(GitFailure),
Write(String),
Phase(PhaseMarkerError),
}Expand description
Failure of a capture under capture order. Each variant keeps the incumbent’s wording, so a diagnostic reads the same from either wrapper.
Variants§
Store(CaptureError)
The store, its identity or its sequence file is unusable.
Lock(OwnerLockError)
The capture lock could not be taken.
Git(GitFailure)
A Git read of the capture failed.
Write(String)
The transaction directory could not receive captured.json.
Phase(PhaseMarkerError)
The test-only phase marker variable is malformed or its marker could not be written.
Trait Implementations§
Source§impl Debug for CaptureOrderError
impl Debug for CaptureOrderError
Source§impl Display for CaptureOrderError
impl Display for CaptureOrderError
Source§impl From<CaptureError> for CaptureOrderError
impl From<CaptureError> for CaptureOrderError
Source§fn from(error: CaptureError) -> Self
fn from(error: CaptureError) -> Self
Wraps a store failure.
Source§impl From<CaptureOrderError> for TransactionStop
impl From<CaptureOrderError> for TransactionStop
Source§fn from(failure: CaptureOrderError) -> Self
fn from(failure: CaptureOrderError) -> Self
A capture failure fails the transaction.
Source§impl From<GitFailure> for CaptureOrderError
impl From<GitFailure> for CaptureOrderError
Source§fn from(error: GitFailure) -> Self
fn from(error: GitFailure) -> Self
Wraps a Git failure.
Auto Trait Implementations§
impl !RefUnwindSafe for CaptureOrderError
impl !UnwindSafe for CaptureOrderError
impl Freeze for CaptureOrderError
impl Send for CaptureOrderError
impl Sync for CaptureOrderError
impl Unpin for CaptureOrderError
impl UnsafeUnpin for CaptureOrderError
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