pub enum Error {
BufferTooShort {
required: usize,
had: usize,
},
VarintOverflow {
bytes: usize,
},
UnsignedOverflow {
value: u64,
},
SignedOverflow {
value: i64,
},
TagTooLarge {
tag: u64,
},
UnknownDiscriminant {
discriminant: u32,
},
}Expand description
All Error conditions within buffertk.
Variants§
BufferTooShort
BufferTooShort indicates that there was a need to pack or unpack more bytes than were available in the underlying memory.
VarintOverflow
VarintOverflow indicates that a varint field did not terminate with a number < 128.
UnsignedOverflow
UnsignedOverflow indicates that a value will not fit its intended (unsigned) target.
SignedOverflow
SignedOverflow indicates that a value will not fit its intended (signed) target.
TagTooLarge
TagTooLarge indicates the tag would overflow a 32-bit number.
UnknownDiscriminant
UnknownDiscriminant indicates a variant that is not understood by this code.