pub enum DecodeLegacyError {
Sigil,
NoDot,
InvalidBase64(DecodeError),
UnknownSuffix,
Sha256WrongSize,
}Expand description
Everything that can go wrong when decoding a Multihash from the legacy encoding.
Variants§
Sigil
Input did not start with the "@" sigil.
NoDot
Input did not contain a "." to separate the data from the suffix.
InvalidBase64(DecodeError)
The base64 portion of the key was invalid.
UnknownSuffix
The suffix is not known to this ssb implementation.
Sha256WrongSize
The suffix declares a sha256 hash, but the data length does not match.
Trait Implementations§
Source§impl Clone for DecodeLegacyError
impl Clone for DecodeLegacyError
Source§fn clone(&self) -> DecodeLegacyError
fn clone(&self) -> DecodeLegacyError
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 DecodeLegacyError
impl Debug for DecodeLegacyError
Source§impl Display for DecodeLegacyError
impl Display for DecodeLegacyError
Source§impl Error for DecodeLegacyError
impl Error for DecodeLegacyError
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 DecodeLegacyError
impl PartialEq for DecodeLegacyError
impl Eq for DecodeLegacyError
impl StructuralPartialEq for DecodeLegacyError
Auto Trait Implementations§
impl Freeze for DecodeLegacyError
impl RefUnwindSafe for DecodeLegacyError
impl Send for DecodeLegacyError
impl Sync for DecodeLegacyError
impl Unpin for DecodeLegacyError
impl UnwindSafe for DecodeLegacyError
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