pub enum AggregateError {
DescriptorTooShort,
InvalidPacketLength {
pkt_len: u16,
pkt_offset: usize,
remaining: usize,
},
}Expand description
Error returned while parsing Realtek RX aggregates.
Variants§
DescriptorTooShort
Fewer than RX_DESC_SIZE bytes were available for a descriptor.
InvalidPacketLength
Descriptor payload length points beyond the remaining aggregate bytes.
Trait Implementations§
Source§impl Clone for AggregateError
impl Clone for AggregateError
Source§fn clone(&self) -> AggregateError
fn clone(&self) -> AggregateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AggregateError
impl Debug for AggregateError
Source§impl Display for AggregateError
impl Display for AggregateError
impl Eq for AggregateError
Source§impl Error for AggregateError
impl Error for AggregateError
1.30.0 · 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()
Source§impl PartialEq for AggregateError
impl PartialEq for AggregateError
Source§fn eq(&self, other: &AggregateError) -> bool
fn eq(&self, other: &AggregateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AggregateError
Auto Trait Implementations§
impl Freeze for AggregateError
impl RefUnwindSafe for AggregateError
impl Send for AggregateError
impl Sync for AggregateError
impl Unpin for AggregateError
impl UnsafeUnpin for AggregateError
impl UnwindSafe for AggregateError
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