pub enum StateError {
Show 13 variants
PluginNotFound(PluginId),
ActorNotFound(ActorId),
ResourceNotFound(ResourceId),
WorkflowNotFound(WorkflowId),
CapabilityNotFound(CapId),
CapabilityNotHeld(PluginId, CapId),
IsolationViolation(PluginId, PluginId),
DanglingCapability(MemAddr),
PluginExists(PluginId),
ActorExists(ActorId),
ResourceExists(ResourceId),
WorkflowExists(WorkflowId),
CounterOverflow(&'static str),
}Expand description
Error type for state operations
Variants§
PluginNotFound(PluginId)
Plugin not found
ActorNotFound(ActorId)
Actor not found
ResourceNotFound(ResourceId)
Resource not found
WorkflowNotFound(WorkflowId)
Workflow not found
CapabilityNotFound(CapId)
Capability not found
CapabilityNotHeld(PluginId, CapId)
Plugin does not hold capability (plugin, cap)
IsolationViolation(PluginId, PluginId)
Isolation violation (active, affected)
DanglingCapability(MemAddr)
Dangling capability would result from freeing this address
PluginExists(PluginId)
Plugin already exists
ActorExists(ActorId)
Actor already exists
ResourceExists(ResourceId)
Resource already exists
WorkflowExists(WorkflowId)
Workflow already exists
CounterOverflow(&'static str)
Counter overflow (time or epoch would exceed u64::MAX)
Trait Implementations§
Source§impl Debug for StateError
impl Debug for StateError
Source§impl Display for StateError
impl Display for StateError
Source§impl Error for StateError
impl Error for StateError
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<StateError> for Error
impl From<StateError> for Error
Source§fn from(e: StateError) -> Self
fn from(e: StateError) -> 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 StateError
impl RefUnwindSafe for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl UnsafeUnpin for StateError
impl UnwindSafe for StateError
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