pub enum IntegerDecodingError {
TooManyOctets,
ValueTooLarge,
NotEnoughOctets,
InvalidPrefix,
}Expand description
Represents all errors that can be encountered while decoding an integer.
Variants§
TooManyOctets
5.1. specifies that “excessively large integer decodings” MUST be considered an error (whether the size is the number of octets or value). This variant corresponds to the encoding containing too many octets.
ValueTooLarge
The variant corresponds to the case where the value of the integer being decoded exceeds a certain threshold.
NotEnoughOctets
When a buffer from which an integer was supposed to be encoded does not contain enough octets to complete the decoding.
InvalidPrefix
Only valid prefixes are [1, 8]
Trait Implementations§
source§impl Clone for IntegerDecodingError
impl Clone for IntegerDecodingError
source§fn clone(&self) -> IntegerDecodingError
fn clone(&self) -> IntegerDecodingError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for IntegerDecodingError
impl Debug for IntegerDecodingError
source§impl PartialEq for IntegerDecodingError
impl PartialEq for IntegerDecodingError
source§fn eq(&self, other: &IntegerDecodingError) -> bool
fn eq(&self, other: &IntegerDecodingError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for IntegerDecodingError
impl StructuralPartialEq for IntegerDecodingError
Auto Trait Implementations§
impl RefUnwindSafe for IntegerDecodingError
impl Send for IntegerDecodingError
impl Sync for IntegerDecodingError
impl Unpin for IntegerDecodingError
impl UnwindSafe for IntegerDecodingError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more