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
source_port: u16
destination_address: Ipv4Addr
destination_port: u16
Implementations
Trait Implementations
impl Copy for IPv4
impl StructuralPartialEq for IPv4
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more