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
NotEnoughBytes(usize, usize)
Return the number of bytes left and the number of bytes demanded
UnconsumedData(usize)
Tuple Fields
0: usize
Data is left in the buffer
SizeTooBig(usize, usize)
Expecting a size that is above the limit
StructureInvalid(String)
Tuple Fields
0: String
Structure of data is not what it should be
UnknownTag(u32)
Tuple Fields
0: u32
Unknown enumeration tag
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ReadError
impl UnwindSafe for ReadError
Blanket Implementations
Mutably borrows from an owned value. Read more