#[non_exhaustive]pub enum IPv4HeaderField {
Ttl,
Protocol,
Saddr,
Daddr,
}Variants (Non-exhaustive)§
This enum is marked as 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§
Source§impl IPv4HeaderField
impl IPv4HeaderField
pub fn from_raw_data(offset: u32, len: u32) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for IPv4HeaderField
impl Clone for IPv4HeaderField
Source§fn clone(&self) -> IPv4HeaderField
fn clone(&self) -> IPv4HeaderField
Returns a duplicate of the value. Read more
1.0.0 · 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 IPv4HeaderField
impl Debug for IPv4HeaderField
Source§impl HeaderField for IPv4HeaderField
impl HeaderField for IPv4HeaderField
Source§impl PartialEq for IPv4HeaderField
impl PartialEq for IPv4HeaderField
impl Copy for IPv4HeaderField
impl Eq for IPv4HeaderField
impl StructuralPartialEq for IPv4HeaderField
Auto Trait Implementations§
impl Freeze for IPv4HeaderField
impl RefUnwindSafe for IPv4HeaderField
impl Send for IPv4HeaderField
impl Sync for IPv4HeaderField
impl Unpin for IPv4HeaderField
impl UnwindSafe for IPv4HeaderField
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