Struct gnunet_sys::ip[][src]

#[repr(C)]pub struct ip {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub ip_tos: u8,
    pub ip_len: c_ushort,
    pub ip_id: c_ushort,
    pub ip_off: c_ushort,
    pub ip_ttl: u8,
    pub ip_p: u8,
    pub ip_sum: c_ushort,
    pub ip_src: in_addr,
    pub ip_dst: in_addr,
}

Fields

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>ip_tos: u8ip_len: c_ushortip_id: c_ushortip_off: c_ushortip_ttl: u8ip_p: u8ip_sum: c_ushortip_src: in_addrip_dst: in_addr

Implementations

impl ip[src]

pub fn ip_hl(&self) -> c_uint[src]

pub fn set_ip_hl(&mut self, val: c_uint)[src]

pub fn ip_v(&self) -> c_uint[src]

pub fn set_ip_v(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    ip_hl: c_uint,
    ip_v: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ip[src]

impl Copy for ip[src]

impl Debug for ip[src]

Auto Trait Implementations

impl RefUnwindSafe for ip

impl Send for ip

impl Sync for ip

impl Unpin for ip

impl UnwindSafe for ip

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.