Enum vip_712::ErrorKind[][src]

pub enum ErrorKind {
    UnexpectedType(StringString),
    NonExistentType,
    InvalidAddressLength(usize),
    HexParseError(String),
    UnknownType(StringString),
    UnexpectedToken(StringString),
    UnsupportedArrayDepth,
    ValidationError(String),
    UnequalArrayItems(u64Stringu64),
    InvalidArraySize(String),
}

Possible errors encountered while hashing/encoding an EIP-712 compliant data structure

Variants

UnexpectedType(StringString)

if we fail to deserialize from a serde::Value as a type specified in message types fail with this error.

NonExistentType

the primary type supplied doesn’t exist in the MessageTypes

InvalidAddressLength(usize)

an invalid address was encountered during encoding

HexParseError(String)

a hex parse error occured

UnknownType(StringString)

the field was declared with a unknown type

UnexpectedToken(StringString)

Unexpected token

UnsupportedArrayDepth

the user has attempted to define a typed array with a depth > 10

ValidationError(String)

FieldType validation error

UnequalArrayItems(u64Stringu64)

the typed array defined in message types was declared with a fixed length that is of unequal length with the items to be encoded

InvalidArraySize(String)

Typed array length doesn’t fit into a u64

Trait Implementations

impl Clone for ErrorKind[src]

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Fail for ErrorKind[src]

impl From<ErrorKind> for Error[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl StructuralPartialEq for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,