Enum rlp::DecoderError[][src]

pub enum DecoderError {
    RlpIsTooBig,
    RlpIsTooShort,
    RlpExpectedToBeList,
    RlpExpectedToBeData,
    RlpIncorrectListLen,
    RlpDataLenWithZeroPrefix,
    RlpListLenWithZeroPrefix,
    RlpInvalidIndirection,
    RlpInconsistentLengthAndData,
    RlpInvalidLength,
    Custom(&'static str),
}

Error concerning the RLP decoder.

Variants

Data has additional bytes at the end of the valid RLP fragment.

Data has too few bytes for valid RLP.

Expect an encoded list, RLP was something else.

Expect encoded data, RLP was something else.

Expected a different size list.

Data length number has a prefixed zero byte, invalid for numbers.

List length number has a prefixed zero byte, invalid for numbers.

Non-canonical (longer than necessary) representation used for data or list.

Declared length is inconsistent with data specified after.

Declared length is invalid and results in overflow

Custom rlp decoding error.

Trait Implementations

impl Debug for DecoderError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for DecoderError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for DecoderError
[src]

impl Clone for DecoderError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl StdError for DecoderError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for DecoderError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations