[][src]Enum ssb_multiformats::multihash::DecodeLegacyError

pub enum DecodeLegacyError {
    Sigil,
    NoDot,
    InvalidBase64(DecodeError),
    UnknownSuffix,
    Sha256WrongSize,
}

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

impl Clone for DecodeLegacyError[src]

impl Debug for DecodeLegacyError[src]

impl Display for DecodeLegacyError[src]

impl Eq for DecodeLegacyError[src]

impl Error for DecodeLegacyError[src]

impl PartialEq<DecodeLegacyError> for DecodeLegacyError[src]

impl StructuralEq for DecodeLegacyError[src]

impl StructuralPartialEq for DecodeLegacyError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.