pub enum DelegationError {
Parse,
BrokenChain {
from: Vec<u8>,
to: Option<Delegation>,
},
UnknownAlgorithm,
IdentityError(String),
}Expand description
An error occurred constructing a DelegatedIdentity.
Variants§
Parse
Parsing error in delegation bytes.
BrokenChain
A key in the chain did not match the signature of the next chain link.
Fields
§
to: Option<Delegation>The delegation that didn’t match, or None if the Identity didn’t match
UnknownAlgorithm
A key with an unknown algorithm was used. The IC supports Ed25519, secp256k1, and prime256v1, and in ECDSA the curve must be specified.
IdentityError(String)
One of Identity’s functions returned an error.
Trait Implementations§
Source§impl Debug for DelegationError
impl Debug for DelegationError
Source§impl Display for DelegationError
impl Display for DelegationError
Source§impl Error for DelegationError
impl Error for DelegationError
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()
Auto Trait Implementations§
impl Freeze for DelegationError
impl RefUnwindSafe for DelegationError
impl Send for DelegationError
impl Sync for DelegationError
impl Unpin 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