pub enum BerError {
Show 14 variants
UnexpectedTag {
expected: Tag,
actual: Tag,
},
Truncated {
need: usize,
have: usize,
},
RecursionLimit {
max: u16,
},
ElementTooLarge {
size: u64,
max: u32,
},
InvalidLength,
InvalidInteger,
InvalidBoolean,
IndefiniteLength,
ConstructedPrimitive,
InvalidTag(u8),
TagOverflow,
TrailingData {
remaining: usize,
},
InvalidUtf8,
Io(Error),
}Variants§
UnexpectedTag
Truncated
RecursionLimit
ElementTooLarge
InvalidLength
InvalidInteger
InvalidBoolean
IndefiniteLength
ConstructedPrimitive
InvalidTag(u8)
TagOverflow
TrailingData
InvalidUtf8
Io(Error)
Trait Implementations§
Source§impl Error for BerError
impl Error for BerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BerError
impl !RefUnwindSafe for BerError
impl Send for BerError
impl Sync for BerError
impl Unpin for BerError
impl UnsafeUnpin for BerError
impl !UnwindSafe for BerError
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