[][src]Enum earth_codec::EarthError

pub enum EarthError {
    InvalidLength(usize),
    NoPrefix,
    InvalidPrefix(String),
    ChecksumFailed(u64),
    InvalidChar(char),
    InvalidVersion(u8),
    MixedCase,
}

Error concerning encoding/decoding of earth addresses

Variants

InvalidLength(usize)

Invalid length (length)

NoPrefix

Zero or multiple prefixes

InvalidPrefix(String)

Failed to match known prefixes (prefix)

ChecksumFailed(u64)

Checksum failed (checksum)

InvalidChar(char)

Unexpected character (char)

InvalidVersion(u8)

Version byte was not recognized

MixedCase

Upper and lowercase address string

Trait Implementations

impl Clone for EarthError[src]

impl Eq for EarthError[src]

impl PartialEq<EarthError> for EarthError[src]

impl Debug for EarthError[src]

impl Display for EarthError[src]

impl StructuralPartialEq for EarthError[src]

impl StructuralEq for EarthError[src]

impl Error for EarthError[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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.

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

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

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

impl<T> AsFail for T where
    T: Fail, 

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self