Enum cardano_serialization_lib::chain_core::mempack::ReadError [−][src]
pub enum ReadError {
NotEnoughBytes(usize, usize),
UnconsumedData(usize),
SizeTooBig(usize, usize),
StructureInvalid(String),
UnknownTag(u32),
}
Variants
Return the number of bytes left and the number of bytes demanded
UnconsumedData(usize)
Data is left in the buffer
Tuple Fields of UnconsumedData
0: usize
Expecting a size that is above the limit
StructureInvalid(String)
Structure of data is not what it should be
Tuple Fields of StructureInvalid
0: String
UnknownTag(u32)
Unknown enumeration tag
Tuple Fields of UnknownTag
0: u32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ReadError
impl UnwindSafe for ReadError
Blanket Implementations
Mutably borrows from an owned value. Read more