Skip to main content

RvmError

Enum RvmError 

Source
pub enum RvmError {
Show 34 variants PartitionNotFound, InvalidPartitionState, PartitionLimitExceeded, SplitPreconditionFailed, MergePreconditionFailed, MigrationTimeout, VcpuNotFound, VcpuLimitReached, InsufficientCapability, StaleCapability, CapabilityTypeMismatch, DelegationDepthExceeded, CapabilityConsumed, WitnessVerificationFailed, WitnessChainBroken, WitnessLogFull, ProofInvalid, ProofTierInsufficient, ProofBudgetExceeded, CoherenceBelowThreshold, MinCutBudgetExceeded, MemoryOverlap, AlignmentError, InvalidTierTransition, OutOfMemory, DeviceLeaseNotFound, DeviceLeaseExpired, DeviceLeaseConflict, CheckpointNotFound, CheckpointCorrupted, FailureEscalated, ResourceLimitExceeded, Unsupported, InternalError,
}
Expand description

The unified error type for RVM operations.

Variants§

§

PartitionNotFound

The requested partition was not found.

§

InvalidPartitionState

The partition is in the wrong lifecycle state for this operation.

§

PartitionLimitExceeded

Maximum partition count has been reached (DC-12).

§

SplitPreconditionFailed

The partition split preconditions were not met.

§

MergePreconditionFailed

The partition merge preconditions were not met (DC-11).

§

MigrationTimeout

Partition migration timed out (DC-7).

§

VcpuNotFound

The requested vCPU was not found.

§

VcpuLimitReached

The partition has no available vCPU slots.

§

InsufficientCapability

A capability check failed – insufficient rights.

§

StaleCapability

The capability token is stale (epoch mismatch).

§

CapabilityTypeMismatch

The capability type does not match the resource.

§

DelegationDepthExceeded

Maximum delegation depth exceeded.

§

CapabilityConsumed

The capability has already been consumed (GRANT_ONCE).

§

WitnessVerificationFailed

A witness verification failed.

§

WitnessChainBroken

The witness hash chain is broken (tamper detected).

§

WitnessLogFull

The witness log is full and drain is not keeping up.

§

ProofInvalid

A proof validation failed.

§

ProofTierInsufficient

The proof tier is insufficient for this operation.

§

ProofBudgetExceeded

Proof verification exceeded its time budget.

§

CoherenceBelowThreshold

The coherence score is below the required threshold.

§

MinCutBudgetExceeded

The mincut budget was exceeded (DC-2 fallback triggered).

§

MemoryOverlap

The requested memory region overlaps with an existing mapping.

§

AlignmentError

An address is not properly aligned.

§

InvalidTierTransition

The memory tier transition is invalid.

§

OutOfMemory

No physical memory is available for allocation.

§

DeviceLeaseNotFound

The requested device lease was not found.

§

DeviceLeaseExpired

The device lease has expired.

§

DeviceLeaseConflict

A conflicting device lease exists.

§

CheckpointNotFound

The recovery checkpoint was not found.

§

CheckpointCorrupted

The recovery checkpoint is corrupted.

§

FailureEscalated

Failure escalated beyond recovery capability (DC-14).

§

ResourceLimitExceeded

The operation would exceed a configured resource limit.

§

Unsupported

The operation is not supported in the current configuration.

§

InternalError

An internal invariant was violated (should not occur).

Trait Implementations§

Source§

impl Clone for RvmError

Source§

fn clone(&self) -> RvmError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RvmError

Source§

impl Debug for RvmError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RvmError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RvmError

Source§

impl PartialEq for RvmError

Source§

fn eq(&self, other: &RvmError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RvmError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.