pub enum DelegationError {
IssuerNotDelegator,
ParentNotDelegable,
DepthExceeded,
ScopeEscalation,
OpsEscalation,
ExpiryExtension,
}Expand description
Why a delegation link was invalid.
Variants§
IssuerNotDelegator
A sub-grant’s issuer is not the bearer of the link above it.
ParentNotDelegable
The parent grant is not delegable (delegation_depth == 0).
DepthExceeded
The sub-grant’s delegation depth exceeds parent.depth - 1.
ScopeEscalation
The sub-grant’s scope is broader than its parent’s.
OpsEscalation
The sub-grant requests operations its parent did not have.
ExpiryExtension
The sub-grant would outlive its parent.
Trait Implementations§
Source§impl Clone for DelegationError
impl Clone for DelegationError
Source§fn clone(&self) -> DelegationError
fn clone(&self) -> DelegationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DelegationError
impl Debug for DelegationError
Source§impl<'de> Deserialize<'de> for DelegationError
impl<'de> Deserialize<'de> for DelegationError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DelegationError
Source§impl PartialEq for DelegationError
impl PartialEq for DelegationError
Source§impl Serialize for DelegationError
impl Serialize for DelegationError
impl StructuralPartialEq for DelegationError
Auto Trait Implementations§
impl Freeze for DelegationError
impl RefUnwindSafe for DelegationError
impl Send for DelegationError
impl Sync for DelegationError
impl Unpin for DelegationError
impl UnsafeUnpin for DelegationError
impl UnwindSafe for DelegationError
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