#[non_exhaustive]pub enum CommitError {
Show 20 variants
Plan(CommitPlanError),
Binding {
reserved_transaction: TransactionId,
plan_transaction: TransactionId,
},
BaseSnapshotBinding,
DependencyLimit {
observed: usize,
maximum: usize,
},
PlanSize {
observed: usize,
maximum: usize,
},
TransactionWorkspaceExists {
transaction: TransactionId,
},
UnsafeBlobStore {
workspace_root: PathBuf,
blobs_directory: PathBuf,
},
Host(HostError),
Store(TransactionStoreError),
Blob(BlobStoreError),
DataDirectory(DataDirectoryError),
Journal(JournalError),
PlanDecode(PlanDecodeError),
InternalIo {
operation: &'static str,
source: Error,
},
Stale {
conflicts: Vec<RevalidationConflict>,
},
Verification(Box<VerificationFailure>),
FaultInjected {
point: FaultPoint,
},
RecoveryRequired {
transaction: TransactionId,
cause: String,
},
RecoveryConflict(RecoveryConflict),
InvalidRecoveryState {
transaction: TransactionId,
state: TransactionState,
},
}Expand description
Trusted-commit, revalidation, or recovery failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Plan(CommitPlanError)
The immutable commit artifact is internally inconsistent.
Binding
The single-use reservation covers another transaction.
Fields
reserved_transaction: TransactionIdTransaction consumed from the store.
plan_transaction: TransactionIdTransaction derived from the supplied artifact.
BaseSnapshotBinding
Reservation and artifact cover different base snapshots.
DependencyLimit
The combined dependency set exceeds its configured bound.
PlanSize
An encoded plan or recovery journal exceeds its configured bound.
TransactionWorkspaceExists
A durable workspace already exists and must be recovered first.
Fields
transaction: TransactionIdAffected transaction.
UnsafeBlobStore
A caller-supplied blob store overlaps the untrusted workspace namespace.
Fields
Host(HostError)
Capability-scoped host observation or mutation failed.
Store(TransactionStoreError)
Atomic transaction-state persistence failed.
Blob(BlobStoreError)
Immutable blob loading or verification failed.
DataDirectory(DataDirectoryError)
The protected workspace data capability could not be established.
Journal(JournalError)
Durable journal validation failed.
PlanDecode(PlanDecodeError)
Durable plan decoding failed.
InternalIo
Internal capability-directory I/O failed.
Stale
Revalidation detected stale dependencies before mutation.
Fields
conflicts: Vec<RevalidationConflict>Bounded set of exact conflicts.
Verification(Box<VerificationFailure>)
An operation or post-commit final-state check failed.
FaultInjected
Test-only simulated crash point fired.
Fields
point: FaultPointFired boundary.
RecoveryRequired
Mutation may have begun and the durable journal must be recovered.
Fields
transaction: TransactionIdAffected transaction.
RecoveryConflict(RecoveryConflict)
Recovery could not prove ownership and left host data untouched.
InvalidRecoveryState
Store state is incompatible with the durable recovery artifact.
Fields
transaction: TransactionIdAffected transaction.
state: TransactionStateUnexpected persisted state.
Trait Implementations§
Source§impl Debug for CommitError
impl Debug for CommitError
Source§impl Display for CommitError
impl Display for CommitError
Source§impl Error for CommitError
impl Error for CommitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BlobStoreError> for CommitError
impl From<BlobStoreError> for CommitError
Source§fn from(source: BlobStoreError) -> CommitError
fn from(source: BlobStoreError) -> CommitError
Source§impl From<CommitError> for VshError
impl From<CommitError> for VshError
Source§fn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Source§impl From<CommitPlanError> for CommitError
impl From<CommitPlanError> for CommitError
Source§fn from(source: CommitPlanError) -> CommitError
fn from(source: CommitPlanError) -> CommitError
Source§impl From<DataDirectoryError> for CommitError
impl From<DataDirectoryError> for CommitError
Source§fn from(source: DataDirectoryError) -> CommitError
fn from(source: DataDirectoryError) -> CommitError
Source§impl From<HostError> for CommitError
impl From<HostError> for CommitError
Source§fn from(source: HostError) -> CommitError
fn from(source: HostError) -> CommitError
Source§impl From<JournalError> for CommitError
impl From<JournalError> for CommitError
Source§fn from(source: JournalError) -> CommitError
fn from(source: JournalError) -> CommitError
Source§impl From<PlanDecodeError> for CommitError
impl From<PlanDecodeError> for CommitError
Source§fn from(source: PlanDecodeError) -> CommitError
fn from(source: PlanDecodeError) -> CommitError
Source§impl From<TransactionStoreError> for CommitError
impl From<TransactionStoreError> for CommitError
Source§fn from(source: TransactionStoreError) -> CommitError
fn from(source: TransactionStoreError) -> CommitError
Auto Trait Implementations§
impl !RefUnwindSafe for CommitError
impl !UnwindSafe for CommitError
impl Freeze for CommitError
impl Send for CommitError
impl Sync for CommitError
impl Unpin for CommitError
impl UnsafeUnpin for CommitError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> ToCharString for Twhere
T: Display,
impl<T> ToCharString for Twhere
T: Display,
Source§fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
CharString. Read moreSource§fn to_char_string(&self) -> CharString
fn to_char_string(&self) -> CharString
CharString. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more