pub enum DidConversionError {
InvalidHex(String),
WrongKeyLength(usize),
}Expand description
Errors from DID conversion operations.
Variants§
InvalidHex(String)
The input is not valid hexadecimal.
WrongKeyLength(usize)
The decoded key is not 32 bytes.
Trait Implementations§
Source§impl Clone for DidConversionError
impl Clone for DidConversionError
Source§fn clone(&self) -> DidConversionError
fn clone(&self) -> DidConversionError
Returns a duplicate of the value. Read more
1.0.0 · 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 DidConversionError
impl Debug for DidConversionError
Source§impl Display for DidConversionError
impl Display for DidConversionError
Source§impl Error for DidConversionError
impl Error for DidConversionError
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 DidConversionError
impl PartialEq for DidConversionError
impl Eq for DidConversionError
impl StructuralPartialEq for DidConversionError
Auto Trait Implementations§
impl Freeze for DidConversionError
impl RefUnwindSafe for DidConversionError
impl Send for DidConversionError
impl Sync for DidConversionError
impl Unpin for DidConversionError
impl UnsafeUnpin for DidConversionError
impl UnwindSafe for DidConversionError
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