pub struct IPv4Packet {}Expand description
IPv4 (Layer 3) Packet
Fields§
§version: u8§ihl: u8§dscp: u8§ecn: u8§total_length: u16§identification: u16§flags: IPv4Flags§fragment_offset: u16§ttl: u8§protocol: u8§header_checksum: u16§source_ip: [u8; 4]§destination_ip: [u8; 4]§options: Vec<u8>Trait Implementations§
Source§impl Clone for IPv4Packet
impl Clone for IPv4Packet
Source§fn clone(&self) -> IPv4Packet
fn clone(&self) -> IPv4Packet
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 IPv4Packet
impl Debug for IPv4Packet
Source§impl<'de> Deserialize<'de> for IPv4Packet
impl<'de> Deserialize<'de> for IPv4Packet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IPv4Packet
impl RefUnwindSafe for IPv4Packet
impl Send for IPv4Packet
impl Sync for IPv4Packet
impl Unpin for IPv4Packet
impl UnwindSafe for IPv4Packet
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