#[repr(C)]pub struct iphdr {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub tos: u8,
pub tot_len: u16,
pub id: u16,
pub frag_off: u16,
pub ttl: u8,
pub protocol: u8,
pub check: u16,
pub saddr: u32,
pub daddr: u32,
}
Fields§
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
§tos: u8
§tot_len: u16
§id: u16
§frag_off: u16
§ttl: u8
§protocol: u8
§check: u16
§saddr: u32
§daddr: u32
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for iphdr
impl RefUnwindSafe for iphdr
impl Send for iphdr
impl Sync for iphdr
impl Unpin for iphdr
impl UnwindSafe for iphdr
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