pub enum AuthorityError {
Show 14 variants
ChainBroken {
index: usize,
reason: String,
},
DepthExceeded {
depth: usize,
max_depth: usize,
},
ScopeWidening {
index: usize,
},
ExpiredLink {
index: usize,
},
InvalidSignature {
index: usize,
},
SigningPayloadEncoding {
reason: String,
},
AuditHashEncoding {
reason: String,
},
AuditChainBroken {
sequence: u64,
},
InvalidDelegation {
reason: String,
},
DuplicateDelegation {
id: String,
},
CircularDelegation(String),
NotFound(String),
EmptyChain,
PermissionDenied(String),
}Expand description
Errors that can occur during authority chain validation and delegation operations.
Variants§
ChainBroken
DepthExceeded
ScopeWidening
ExpiredLink
InvalidSignature
SigningPayloadEncoding
AuditHashEncoding
AuditChainBroken
InvalidDelegation
DuplicateDelegation
CircularDelegation(String)
NotFound(String)
EmptyChain
PermissionDenied(String)
Trait Implementations§
Source§impl Clone for AuthorityError
impl Clone for AuthorityError
Source§fn clone(&self) -> AuthorityError
fn clone(&self) -> AuthorityError
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 AuthorityError
impl Debug for AuthorityError
Source§impl Display for AuthorityError
impl Display for AuthorityError
impl Eq for AuthorityError
Source§impl Error for AuthorityError
impl Error for AuthorityError
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 PartialEq for AuthorityError
impl PartialEq for AuthorityError
Source§fn eq(&self, other: &AuthorityError) -> bool
fn eq(&self, other: &AuthorityError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthorityError
Auto Trait Implementations§
impl Freeze for AuthorityError
impl RefUnwindSafe for AuthorityError
impl Send for AuthorityError
impl Sync for AuthorityError
impl Unpin for AuthorityError
impl UnsafeUnpin for AuthorityError
impl UnwindSafe for AuthorityError
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