[−][src]Enum radiotap::field::Type
The type of radiotap field.
Each variant corresponds to unique field in the radiotap capture.
Kind
is implemented to describe the alignment
and size of each field, so that the iterator knows how to handle it.
Not all of these types are parsed by this crate. The ones that have a
corresponding field have the identical name in field
module.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations
impl Type
[src]
pub fn from_bit(bit: u32) -> Option<Self>
[src]
Construct a new type from a bit. None
if unknown.
pub fn bit(&self) -> u32
[src]
Returns the present bit for the type.
Trait Implementations
impl Clone for Type
[src]
impl Copy for Type
[src]
impl Debug for Type
[src]
impl Eq for Type
[src]
impl Kind for Type
[src]
fn align(&self) -> usize
[src]
Returns the alignment of the field.
fn size(&self) -> usize
[src]
Returns the size of the field.
impl PartialEq<Type> for Type
[src]
impl StructuralEq for Type
[src]
impl StructuralPartialEq for Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,