Struct linux_raw_sys::net::tcphdr

source ·
#[repr(C)]
pub struct tcphdr { pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub window: __be16, pub check: __sum16, pub urg_ptr: __be16, }

Fields§

§source: __be16§dest: __be16§seq: __be32§ack_seq: __be32§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§window: __be16§check: __sum16§urg_ptr: __be16

Implementations§

source§

impl tcphdr

source

pub fn res1(&self) -> __u16

source

pub fn set_res1(&mut self, val: __u16)

source

pub fn doff(&self) -> __u16

source

pub fn set_doff(&mut self, val: __u16)

source

pub fn fin(&self) -> __u16

source

pub fn set_fin(&mut self, val: __u16)

source

pub fn syn(&self) -> __u16

source

pub fn set_syn(&mut self, val: __u16)

source

pub fn rst(&self) -> __u16

source

pub fn set_rst(&mut self, val: __u16)

source

pub fn psh(&self) -> __u16

source

pub fn set_psh(&mut self, val: __u16)

source

pub fn ack(&self) -> __u16

source

pub fn set_ack(&mut self, val: __u16)

source

pub fn urg(&self) -> __u16

source

pub fn set_urg(&mut self, val: __u16)

source

pub fn ece(&self) -> __u16

source

pub fn set_ece(&mut self, val: __u16)

source

pub fn cwr(&self) -> __u16

source

pub fn set_cwr(&mut self, val: __u16)

source

pub fn new_bitfield_1( res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

source§

impl Clone for tcphdr

source§

fn clone(&self) -> tcphdr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for tcphdr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for tcphdr

Auto Trait Implementations§

§

impl Freeze for tcphdr

§

impl RefUnwindSafe for tcphdr

§

impl Send for tcphdr

§

impl Sync for tcphdr

§

impl Unpin for tcphdr

§

impl UnwindSafe for tcphdr

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.