[][src]Enum muta_protocol::codec::CodecError

pub enum CodecError {
    ProtobufEncode(EncodeError),
    ProtobufDecode(DecodeError),
    MissingField {
        type: &'static str,
        field: &'static str,
    },
    InvalidContractType(i32),
    WrongBytesLength {
        expect: usize,
        real: usize,
    },
    FromStringUtf8(FromUtf8Error),
}

Variants

ProtobufEncode(EncodeError)
ProtobufDecode(DecodeError)
MissingField

Fields of MissingField

type: &'static strfield: &'static str
InvalidContractType(i32)
WrongBytesLength

Fields of WrongBytesLength

expect: usizereal: usize
FromStringUtf8(FromUtf8Error)

Trait Implementations

impl Debug for CodecError[src]

impl Display for CodecError[src]

impl Error for CodecError[src]

impl From<(&'static str, &'static str)> for CodecError[src]

impl From<(usize, usize)> for CodecError[src]

impl From<CodecError> for ProtocolError[src]

impl From<DecodeError> for CodecError[src]

impl From<EncodeError> for CodecError[src]

impl From<FromUtf8Error> for CodecError[src]

impl From<i32> for CodecError[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> 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>,