pub enum RadiotapError {
TooShort,
InvalidLength,
UnsupportedHeader,
}Expand description
Error returned while parsing a radiotap TX header.
Variants§
TooShort
Packet is too short to contain the radiotap fixed header.
InvalidLength
Radiotap length field is zero, out of range, or inconsistent.
UnsupportedHeader
The header uses fields this minimal parser does not support.
Trait Implementations§
Source§impl Clone for RadiotapError
impl Clone for RadiotapError
Source§fn clone(&self) -> RadiotapError
fn clone(&self) -> RadiotapError
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 RadiotapError
impl Debug for RadiotapError
Source§impl Display for RadiotapError
impl Display for RadiotapError
impl Eq for RadiotapError
Source§impl Error for RadiotapError
impl Error for RadiotapError
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 RadiotapError
impl PartialEq for RadiotapError
Source§fn eq(&self, other: &RadiotapError) -> bool
fn eq(&self, other: &RadiotapError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RadiotapError
Auto Trait Implementations§
impl Freeze for RadiotapError
impl RefUnwindSafe for RadiotapError
impl Send for RadiotapError
impl Sync for RadiotapError
impl Unpin for RadiotapError
impl UnsafeUnpin for RadiotapError
impl UnwindSafe for RadiotapError
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