pub struct PktInfo {
pub if_index: u64,
pub addr_src: SocketAddr,
pub addr_dst: IpAddr,
}Expand description
Fields§
§if_index: u64Interface index
addr_src: SocketAddrSource address
addr_dst: IpAddrHeader destination address
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PktInfo
impl RefUnwindSafe for PktInfo
impl Send for PktInfo
impl Sync for PktInfo
impl Unpin for PktInfo
impl UnwindSafe for PktInfo
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