pub enum DescriptorError {
NotEnoughData {
tag: u8,
actual: usize,
expected: usize,
},
TagTooLongForBuffer {
taglen: usize,
buflen: usize,
},
BufferTooShort {
buflen: usize,
},
UnhandledTagValue(u8),
}
Expand description
An error during parsing of a descriptor
Variants§
NotEnoughData
Fields
The amount of data available in the buffer is not enough to hold the descriptor’s declared size.
TagTooLongForBuffer
Fields
TODO: replace with NotEnoughData
BufferTooShort
The buffer is too short to even hold the two bytes of generic descriptor header data
UnhandledTagValue(u8)
There is no mapping defined of the given descriptor tag value to a Descriptor
value.
Trait Implementations§
source§impl Debug for DescriptorError
impl Debug for DescriptorError
source§impl PartialEq for DescriptorError
impl PartialEq for DescriptorError
source§fn eq(&self, other: &DescriptorError) -> bool
fn eq(&self, other: &DescriptorError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DescriptorError
impl StructuralPartialEq for DescriptorError
Auto Trait Implementations§
impl RefUnwindSafe for DescriptorError
impl Send for DescriptorError
impl Sync for DescriptorError
impl Unpin for DescriptorError
impl UnwindSafe for DescriptorError
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