Struct gnunet_sys::iphdr [−][src]
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
impl iphdr
[src]
pub fn ihl(&self) -> c_uint
[src]
pub fn set_ihl(&mut self, val: c_uint)
[src]
pub fn version(&self) -> c_uint
[src]
pub fn set_version(&mut self, val: c_uint)
[src]
pub fn new_bitfield_1(
ihl: c_uint,
version: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]
ihl: c_uint,
version: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for iphdr
impl Send for iphdr
impl Sync for iphdr
impl Unpin for iphdr
impl UnwindSafe for iphdr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,