pub enum Error {
Show 24 variants
UnknownCapability(u128),
MethodNotGranted {
method: String,
},
Escalation(&'static str),
ReadOnly,
PathNotGranted(String),
ToolPolicy(&'static str),
Revoked(u128),
BudgetExceeded(&'static str),
UnknownLane(u64),
UnknownChannel(u64),
UnknownPromise(u64),
PromiseCancelled(u64),
PromiseAlreadyResolved(u64),
UnresolvablePromise(u64),
Provider {
code: String,
},
Domain(&'static str),
Payload(String),
Wire(&'static str),
CapabilityTable(&'static str),
Transport(String),
TransportUnavailable(&'static str),
Timeout,
PipelinedCycle,
InvalidArgument(&'static str),
}Expand description
A capability, promise, transport or protocol failure.
Variants§
UnknownCapability(u128)
A capability id is unknown to this kernel (forged or expired).
MethodNotGranted
A capability exists but the requested method is outside its grants.
Escalation(&'static str)
An attenuation attempt would widen authority.
ReadOnly
A capability is read-only and the call mutates state.
PathNotGranted(String)
A path restriction rejected the call.
ToolPolicy(&'static str)
A tool policy rejected the call.
Revoked(u128)
The capability has been revoked or its provider disappeared.
BudgetExceeded(&'static str)
A budget was exhausted.
UnknownLane(u64)
The lane does not exist (or was destroyed).
UnknownChannel(u64)
The channel does not exist.
UnknownPromise(u64)
The promise does not exist.
PromiseCancelled(u64)
A promise was cancelled and can no longer be awaited.
PromiseAlreadyResolved(u64)
A promise was resolved twice.
UnresolvablePromise(u64)
The call references a promise that will never resolve.
Provider
The provider failed the call.
Domain(&'static str)
A translated Active evaluation failed.
Payload(String)
A payload is not a valid Active Infinity module.
Wire(&'static str)
The wire envelope is malformed.
CapabilityTable(&'static str)
The envelope’s capability table is malformed or oversized.
Transport(String)
A transport failed.
A transport is unavailable in this build or on this host.
Timeout
A deadline elapsed before the call completed.
PipelinedCycle
The kernel detected a cycle in pipelined calls.
InvalidArgument(&'static str)
Invalid argument supplied by the caller.
Implementations§
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.