Enum rlp::DecoderError [−][src]
pub enum DecoderError {
RlpIsTooBig,
RlpIsTooShort,
RlpExpectedToBeList,
RlpExpectedToBeData,
RlpIncorrectListLen,
RlpDataLenWithZeroPrefix,
RlpListLenWithZeroPrefix,
RlpInvalidIndirection,
RlpInconsistentLengthAndData,
RlpInvalidLength,
Custom(&'static str),
}
Expand description
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(&'static str)
Custom rlp decoding error.
Tuple Fields of Custom
0: &'static str
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnwindSafe for DecoderError
Blanket Implementations
Mutably borrows from an owned value. Read more