pub enum SecondaryHeaderFlag {
NotPresent,
Present,
Unknown,
}Expand description
The secondary header flag indicates whether there is another header following the primary header (Present) or not (NotPresent).
Variants§
NotPresent
The secondary header is not present. The bytes following the primary header is the packet’s data section.
Present
A secondary header is present in the packet. The secondary header follows the primary header.
Unknown
The secondary header flag in not valid. This should not occur, but it is included for turning an integer into a SecondaryHeaderFlag.
Trait Implementations§
Source§impl Clone for SecondaryHeaderFlag
impl Clone for SecondaryHeaderFlag
Source§fn clone(&self) -> SecondaryHeaderFlag
fn clone(&self) -> SecondaryHeaderFlag
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 moreimpl Copy for SecondaryHeaderFlag
Source§impl Debug for SecondaryHeaderFlag
impl Debug for SecondaryHeaderFlag
Source§impl Default for SecondaryHeaderFlag
impl Default for SecondaryHeaderFlag
Source§fn default() -> SecondaryHeaderFlag
fn default() -> SecondaryHeaderFlag
Returns the “default value” for a type. Read more
impl Eq for SecondaryHeaderFlag
Source§impl From<SecondaryHeaderFlag> for u8
impl From<SecondaryHeaderFlag> for u8
Source§fn from(flag: SecondaryHeaderFlag) -> u8
fn from(flag: SecondaryHeaderFlag) -> u8
Converts to this type from the input type.
Source§impl From<u8> for SecondaryHeaderFlag
impl From<u8> for SecondaryHeaderFlag
Source§fn from(byte: u8) -> SecondaryHeaderFlag
fn from(byte: u8) -> SecondaryHeaderFlag
Converts to this type from the input type.
Source§impl PartialEq for SecondaryHeaderFlag
impl PartialEq for SecondaryHeaderFlag
impl StructuralPartialEq for SecondaryHeaderFlag
Auto Trait Implementations§
impl Freeze for SecondaryHeaderFlag
impl RefUnwindSafe for SecondaryHeaderFlag
impl Send for SecondaryHeaderFlag
impl Sync for SecondaryHeaderFlag
impl Unpin for SecondaryHeaderFlag
impl UnsafeUnpin for SecondaryHeaderFlag
impl UnwindSafe for SecondaryHeaderFlag
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