#[non_exhaustive]pub enum VshError {
Show 27 variants
DataDirectory(DataDirectoryError),
Blob(BlobStoreError),
Commit(CommitError),
Execution(ExecutionError),
Vfs(VfsError),
Store(TransactionStoreError),
Approval(ApprovalGrantError),
CommitPlan(CommitPlanError),
Artifact(ArtifactError),
ResultCompatibility(ResultCompatibilityError),
UnsafeDataDirectory {
workspace_root: PathBuf,
data_directory: PathBuf,
},
ArtifactBinding {
requested: TransactionId,
decoded: TransactionId,
},
RecoveryConflicts(Box<RecoveryReport>),
MissingPending {
transaction: TransactionId,
},
DuplicatePending {
transaction: TransactionId,
},
EphemeralCapacity {
entries: usize,
max_entries: usize,
attempted_bytes: usize,
max_bytes: usize,
},
PendingPoisoned,
HookRequired(Box<RequestEvent>),
HookHandler(HookHandlerError),
HookStateChanged {
transaction: TransactionId,
prepared: TransactionState,
actual: TransactionState,
},
HookConfigurationChanged {
transaction: TransactionId,
},
HookEventMismatch {
transaction: TransactionId,
},
UnexpectedHookDecision {
transaction: TransactionId,
},
HookNotActionable {
transaction: TransactionId,
actual: TransactionState,
},
HookReasonLimit {
observed: usize,
maximum: usize,
},
HookApprovalWindow {
transaction: TransactionId,
},
IncompleteHookEvidence {
transaction: TransactionId,
},
}Expand description
Stable native error surface shared with the Python exception mapper.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DataDirectory(DataDirectoryError)
The durable data-directory capability could not be established safely.
Blob(BlobStoreError)
Immutable blob storage failed.
Commit(CommitError)
Capability-rooted commit or recovery failed.
Execution(ExecutionError)
Monty compilation, execution, or a hard execution budget failed.
Vfs(VfsError)
Virtual filesystem integrity or canonical diff generation failed.
Store(TransactionStoreError)
Atomic transaction-state operation failed.
Approval(ApprovalGrantError)
An approval grant had an invalid time window.
CommitPlan(CommitPlanError)
The internal commit artifact did not match its binding.
Artifact(ArtifactError)
Durable pending-artifact encoding or validation failed.
ResultCompatibility(ResultCompatibilityError)
The selected SDK surface cannot faithfully project the Monty result.
UnsafeDataDirectory
A caller-selected data directory overlaps the untrusted workspace.
Fields
ArtifactBinding
A content-addressed artifact decoded to another transaction identity.
Fields
requested: TransactionIdTransaction requested by the caller and state store.
decoded: TransactionIdTransaction recomputed from decoded artifact contents.
RecoveryConflicts(Box<RecoveryReport>)
Startup recovery found ownership it could not prove and left it untouched.
MissingPending
The transaction record has no durable exact artifact.
Fields
transaction: TransactionIdRequested transaction.
DuplicatePending
A duplicate exact artifact attempted to occupy the pending map.
Fields
transaction: TransactionIdDuplicate transaction.
EphemeralCapacity
Process-local preview retention reached its configured hard bound.
Fields
PendingPoisoned
The short-lived pending-artifact mutex was poisoned by a panic.
HookRequired(Box<RequestEvent>)
Direct commit was blocked because a configured hook must decide first.
HookHandler(HookHandlerError)
The external hook handler failed after fail-closed state was applied.
HookStateChanged
Durable state changed after the event was prepared.
Fields
transaction: TransactionIdExact transaction represented by the preparation.
prepared: TransactionStateState captured while preparing the hook event.
actual: TransactionStateState observed when resolving the hook decision.
HookConfigurationChanged
Hook configuration no longer matches the prepared transaction evidence.
Fields
transaction: TransactionIdTransaction whose bound hook configuration changed.
HookEventMismatch
The event supplied for resolution was not the exact regenerated event.
Fields
transaction: TransactionIdTransaction whose regenerated event did not match.
UnexpectedHookDecision
A handler decision was supplied when no handler was requested.
Fields
transaction: TransactionIdTransaction that did not request a hook decision.
HookNotActionable
The selected transaction state cannot accept a hook decision.
Fields
transaction: TransactionIdTransaction rejected by the hook state guard.
actual: TransactionStateNon-actionable state observed by the resolver.
HookReasonLimit
Hook feedback exceeded its configured hard UTF-8 bound.
Fields
HookApprovalWindow
Hook approval expiry overflowed or did not advance host time.
Fields
transaction: TransactionIdTransaction whose approval window was invalid.
IncompleteHookEvidence
Legacy or truncated evidence cannot be approved by an automated hook.
Fields
transaction: TransactionIdTransaction without complete hook evidence.
Trait Implementations§
Source§impl Error for VshError
impl Error for VshError
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<ApprovalGrantError> for VshError
impl From<ApprovalGrantError> for VshError
Source§fn from(source: ApprovalGrantError) -> Self
fn from(source: ApprovalGrantError) -> Self
Source§impl From<ArtifactError> for VshError
impl From<ArtifactError> for VshError
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Source§impl From<BlobStoreError> for VshError
impl From<BlobStoreError> for VshError
Source§fn from(source: BlobStoreError) -> Self
fn from(source: BlobStoreError) -> Self
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 VshError
impl From<CommitPlanError> for VshError
Source§fn from(source: CommitPlanError) -> Self
fn from(source: CommitPlanError) -> Self
Source§impl From<DataDirectoryError> for VshError
impl From<DataDirectoryError> for VshError
Source§fn from(source: DataDirectoryError) -> Self
fn from(source: DataDirectoryError) -> Self
Source§impl From<ExecutionError> for VshError
impl From<ExecutionError> for VshError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Source§impl From<ResultCompatibilityError> for VshError
impl From<ResultCompatibilityError> for VshError
Source§fn from(source: ResultCompatibilityError) -> Self
fn from(source: ResultCompatibilityError) -> Self
Source§impl From<TransactionStoreError> for VshError
impl From<TransactionStoreError> for VshError
Source§fn from(source: TransactionStoreError) -> Self
fn from(source: TransactionStoreError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for VshError
impl !UnwindSafe for VshError
impl Freeze for VshError
impl Send for VshError
impl Sync for VshError
impl Unpin for VshError
impl UnsafeUnpin for VshError
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