Struct gnunet_sys::GNUNET_TUN_TcpHeader [−][src]
TCP packet header.
Fields
source_port: u16
Source port (in NBO).
destination_port: u16
Destination port (in NBO).
seq: u32
Sequence number.
ack: u32
Acknowledgement number.
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
flags: u8
Flags (SYN, FIN, ACK, etc.)
window_size: u16
Window size.
crc: u16
Checksum.
urgent_pointer: u16
Urgent pointer.
Implementations
impl GNUNET_TUN_TcpHeader
[src]
pub fn reserved(&self) -> c_uint
[src]
pub fn set_reserved(&mut self, val: c_uint)
[src]
pub fn off(&self) -> c_uint
[src]
pub fn set_off(&mut self, val: c_uint)
[src]
pub fn new_bitfield_1(
reserved: c_uint,
off: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]
reserved: c_uint,
off: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations
impl Clone for GNUNET_TUN_TcpHeader
[src]
fn clone(&self) -> GNUNET_TUN_TcpHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GNUNET_TUN_TcpHeader
[src]
impl Debug for GNUNET_TUN_TcpHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for GNUNET_TUN_TcpHeader
impl Send for GNUNET_TUN_TcpHeader
impl Sync for GNUNET_TUN_TcpHeader
impl Unpin for GNUNET_TUN_TcpHeader
impl UnwindSafe for GNUNET_TUN_TcpHeader
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>,