pub enum ChainResolveError {
InconsistentId {
grant_id: String,
},
LeafMissing {
grant_id: String,
},
AncestorMissing {
parent_grant_id: String,
},
Cycle {
grant_id: String,
},
UnreachableExtras {
count: usize,
},
Unsigned {
grant_id: String,
},
BadSignature {
grant_id: String,
},
}Expand description
Why a mandate’s grant chain could not be resolved into a trustworthy order.
Variants§
InconsistentId
A grant’s declared id does not match its content.
LeafMissing
mandate.grant_id names a grant that is not in the carried chain.
AncestorMissing
A parent_grant_id points at a grant that is not present.
Cycle
Following parent links revisited a grant: the links form a cycle.
UnreachableExtras
The carrier supplied grants that the walk never reached. Extra grants are refused rather than ignored – silently dropping them would let a carrier stuff a chain with decoys.
Unsigned
A grant carried no signature, so its content is unattested.
BadSignature
A grant’s signature does not verify against its grantor.
Trait Implementations§
Source§impl Clone for ChainResolveError
impl Clone for ChainResolveError
Source§fn clone(&self) -> ChainResolveError
fn clone(&self) -> ChainResolveError
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 ChainResolveError
impl Debug for ChainResolveError
Source§impl Display for ChainResolveError
impl Display for ChainResolveError
impl Eq for ChainResolveError
Source§impl Error for ChainResolveError
impl Error for ChainResolveError
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 ChainResolveError
impl PartialEq for ChainResolveError
impl StructuralPartialEq for ChainResolveError
Auto Trait Implementations§
impl Freeze for ChainResolveError
impl RefUnwindSafe for ChainResolveError
impl Send for ChainResolveError
impl Sync for ChainResolveError
impl Unpin for ChainResolveError
impl UnsafeUnpin for ChainResolveError
impl UnwindSafe for ChainResolveError
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
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
Compare self to
key and return true if they are equal.