pub enum AcdcError {
Serialization(Error),
Said(KeriTranslationError),
SaidMismatch {
layer: &'static str,
computed: String,
found: String,
},
}Expand description
Errors raised while constructing, SAID-ifying, or verifying an Acdc.
Variants§
Serialization(Error)
The credential body could not be serialized to JSON.
Said(KeriTranslationError)
SAID computation failed at the credential or attributes layer.
SaidMismatch
A computed SAID did not match the one carried in the credential.
Trait Implementations§
Source§impl Error for AcdcError
impl Error for AcdcError
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 From<KeriTranslationError> for AcdcError
impl From<KeriTranslationError> for AcdcError
Source§fn from(source: KeriTranslationError) -> Self
fn from(source: KeriTranslationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AcdcError
impl !UnwindSafe for AcdcError
impl Freeze for AcdcError
impl Send for AcdcError
impl Sync for AcdcError
impl Unpin for AcdcError
impl UnsafeUnpin for AcdcError
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