pub struct IPv4 {
pub source_address: Ipv4Addr,
pub source_port: u16,
pub destination_address: Ipv4Addr,
pub destination_port: u16,
}
Expand description
The source and destination IPv4 addresses and TCP ports of a header.
Fields§
§source_address: Ipv4Addr
The source IPv4 address.
source_port: u16
The source TCP/UDP port.
destination_address: Ipv4Addr
The destination IPv4 address.
destination_port: u16
The destination TCP/UDP port.
Implementations§
Trait Implementations§
impl Copy for IPv4
impl Eq for IPv4
impl StructuralPartialEq for IPv4
Auto Trait Implementations§
impl Freeze for IPv4
impl RefUnwindSafe for IPv4
impl Send for IPv4
impl Sync for IPv4
impl Unpin for IPv4
impl UnwindSafe for IPv4
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