#[repr(C)]pub struct iphdr {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub tos: u8,
pub tot_len: u16,
pub id: u16,
pub frag_off: u16,
pub ttl: u8,
pub protocol: u8,
pub check: u16,
pub __bindgen_anon_1: iphdr__bindgen_ty_1,
}Fields§
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§tos: u8§tot_len: u16§id: u16§frag_off: u16§ttl: u8§protocol: u8§check: u16§__bindgen_anon_1: iphdr__bindgen_ty_1Implementations§
Source§impl iphdr
impl iphdr
pub fn ihl(&self) -> u8
pub fn set_ihl(&mut self, val: u8)
pub unsafe fn ihl_raw(this: *const iphdr) -> u8
pub unsafe fn set_ihl_raw(this: *mut iphdr, val: u8)
pub fn version(&self) -> u8
pub fn set_version(&mut self, val: u8)
pub unsafe fn version_raw(this: *const iphdr) -> u8
pub unsafe fn set_version_raw(this: *mut iphdr, val: u8)
pub fn new_bitfield_1(ihl: u8, version: u8) -> __BindgenBitfieldUnit<[u8; 1]>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more