Struct pnet_packet::ipv4::Ipv4 [−][src]
pub struct Ipv4 {}Show fields
pub version: u4, pub header_length: u4, pub dscp: u6, pub ecn: u2, pub total_length: u16be, pub identification: u16be, pub flags: u3, pub fragment_offset: u13be, pub ttl: u8, pub next_level_protocol: IpNextHeaderProtocol, pub checksum: u16be, pub source: Ipv4Addr, pub destination: Ipv4Addr, pub options: Vec<Ipv4Option>, pub payload: Vec<u8>,
Expand description
Represents an IPv4 Packet.
Fields
version: u4
header_length: u4
dscp: u6
ecn: u2
total_length: u16be
identification: u16be
flags: u3
fragment_offset: u13be
ttl: u8
next_level_protocol: IpNextHeaderProtocol
checksum: u16be
source: Ipv4Addr
destination: Ipv4Addr
options: Vec<Ipv4Option>
payload: Vec<u8>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ipv4
impl Send for Ipv4
impl Sync for Ipv4
impl Unpin for Ipv4
impl UnwindSafe for Ipv4
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more