Struct gnunet_sys::GNUNET_TUN_IPv6Header [−][src]
Standard IPv6 header.
Fields
_bitfield_1: __BindgenBitfieldUnit<[u8; 4], u32>
payload_length: u16
Length of the payload, excluding this header.
next_header: u8
For example, IPPROTO_UDP or IPPROTO_TCP.
hop_limit: u8
How many more hops can this packet be forwarded?
source_address: in6_addr
Origin of the packet.
destination_address: in6_addr
Destination of the packet.
Implementations
impl GNUNET_TUN_IPv6Header
[src]
pub fn traffic_class_h(&self) -> c_uint
[src]
pub fn set_traffic_class_h(&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 traffic_class_l(&self) -> c_uint
[src]
pub fn set_traffic_class_l(&mut self, val: c_uint)
[src]
pub fn flow_label(&self) -> c_uint
[src]
pub fn set_flow_label(&mut self, val: c_uint)
[src]
pub fn new_bitfield_1(
traffic_class_h: c_uint,
version: c_uint,
traffic_class_l: c_uint,
flow_label: c_uint
) -> __BindgenBitfieldUnit<[u8; 4], u32>
[src]
traffic_class_h: c_uint,
version: c_uint,
traffic_class_l: c_uint,
flow_label: c_uint
) -> __BindgenBitfieldUnit<[u8; 4], u32>
Trait Implementations
impl Clone for GNUNET_TUN_IPv6Header
[src]
fn clone(&self) -> GNUNET_TUN_IPv6Header
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GNUNET_TUN_IPv6Header
[src]
Auto Trait Implementations
impl RefUnwindSafe for GNUNET_TUN_IPv6Header
impl Send for GNUNET_TUN_IPv6Header
impl Sync for GNUNET_TUN_IPv6Header
impl Unpin for GNUNET_TUN_IPv6Header
impl UnwindSafe for GNUNET_TUN_IPv6Header
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>,