pub enum StepError {
PluginNotFound(PluginId),
ActorNotFound(PluginId),
AddressAlreadyFreed(MemAddr),
CapabilityTargetsAddress(CapId, MemAddr),
CapabilityNotFound(CapId),
AuthorizationFailed(AuthorizationError),
PluginPreconditionFailed(PluginPrecondition),
HostCallPreconditionFailed(HostCallPrecondition),
KernelOpFailed(KernelOpError),
InvalidTransition(InvalidTransitionReason),
StateError(StateError),
QuotaExceeded(u8, u64, u64, u64),
}Expand description
Error type for step operations.
Variants§
PluginNotFound(PluginId)
Plugin not found
ActorNotFound(PluginId)
Actor not found
AddressAlreadyFreed(MemAddr)
Memory address already freed (double-free prevention)
CapabilityTargetsAddress(CapId, MemAddr)
Capability targets this address (temporal safety violation)
CapabilityNotFound(CapId)
Capability not found
AuthorizationFailed(AuthorizationError)
Authorization failed
PluginPreconditionFailed(PluginPrecondition)
Plugin precondition failed
HostCallPreconditionFailed(HostCallPrecondition)
Host call precondition failed
KernelOpFailed(KernelOpError)
Kernel operation failed
InvalidTransition(InvalidTransitionReason)
Invalid state transition
StateError(StateError)
State operation failed
QuotaExceeded(u8, u64, u64, u64)
Resource quota exceeded (DoS prevention)
Trait Implementations§
Source§impl Error for StepError
impl Error for StepError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AuthorizationError> for StepError
impl From<AuthorizationError> for StepError
Source§fn from(e: AuthorizationError) -> Self
fn from(e: AuthorizationError) -> Self
Converts to this type from the input type.
Source§impl From<StateError> for StepError
impl From<StateError> for StepError
Source§fn from(e: StateError) -> Self
fn from(e: StateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StepError
impl RefUnwindSafe for StepError
impl Send for StepError
impl Sync for StepError
impl Unpin for StepError
impl UnsafeUnpin for StepError
impl UnwindSafe for StepError
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