pub enum CapError {
InvalidHandle,
StaleHandle,
TableFull,
Revoked,
DelegationDepthExceeded,
GrantNotPermitted,
RightsEscalation,
TreeFull,
TypeMismatch,
Consumed,
}Expand description
Errors from capability table and derivation operations.
Variants§
InvalidHandle
The capability handle does not resolve to a valid entry.
StaleHandle
The generation counter does not match – handle is stale.
TableFull
The capability table is full.
Revoked
The capability has been revoked.
DelegationDepthExceeded
Delegation depth limit exceeded.
GrantNotPermitted
The source capability lacks GRANT rights.
RightsEscalation
Attempted rights escalation (derived rights not a subset of parent).
TreeFull
The derivation tree is full.
TypeMismatch
Capability type mismatch.
Consumed
The capability has been consumed (GRANT_ONCE).
Trait Implementations§
impl Copy for CapError
impl Eq for CapError
impl StructuralPartialEq for CapError
Auto Trait Implementations§
impl Freeze for CapError
impl RefUnwindSafe for CapError
impl Send for CapError
impl Sync for CapError
impl Unpin for CapError
impl UnsafeUnpin for CapError
impl UnwindSafe for CapError
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