#[repr(C)]pub struct tcphdr__bindgen_ty_1__bindgen_ty_2 {
pub source: u16,
pub dest: u16,
pub seq: u32,
pub ack_seq: u32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub window: u16,
pub check: u16,
pub urg_ptr: u16,
}
Fields§
§source: u16
§dest: u16
§seq: u32
§ack_seq: u32
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§window: u16
§check: u16
§urg_ptr: u16
Implementations§
source§impl tcphdr__bindgen_ty_1__bindgen_ty_2
impl tcphdr__bindgen_ty_1__bindgen_ty_2
pub fn res1(&self) -> u16
pub fn set_res1(&mut self, val: u16)
pub fn doff(&self) -> u16
pub fn set_doff(&mut self, val: u16)
pub fn fin(&self) -> u16
pub fn set_fin(&mut self, val: u16)
pub fn syn(&self) -> u16
pub fn set_syn(&mut self, val: u16)
pub fn rst(&self) -> u16
pub fn set_rst(&mut self, val: u16)
pub fn psh(&self) -> u16
pub fn set_psh(&mut self, val: u16)
pub fn ack(&self) -> u16
pub fn set_ack(&mut self, val: u16)
pub fn urg(&self) -> u16
pub fn set_urg(&mut self, val: u16)
pub fn res2(&self) -> u16
pub fn set_res2(&mut self, val: u16)
pub fn new_bitfield_1( res1: u16, doff: u16, fin: u16, syn: u16, rst: u16, psh: u16, ack: u16, urg: u16, res2: u16, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
source§impl Clone for tcphdr__bindgen_ty_1__bindgen_ty_2
impl Clone for tcphdr__bindgen_ty_1__bindgen_ty_2
source§fn clone(&self) -> tcphdr__bindgen_ty_1__bindgen_ty_2
fn clone(&self) -> tcphdr__bindgen_ty_1__bindgen_ty_2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for tcphdr__bindgen_ty_1__bindgen_ty_2
Auto Trait Implementations§
impl Freeze for tcphdr__bindgen_ty_1__bindgen_ty_2
impl RefUnwindSafe for tcphdr__bindgen_ty_1__bindgen_ty_2
impl Send for tcphdr__bindgen_ty_1__bindgen_ty_2
impl Sync for tcphdr__bindgen_ty_1__bindgen_ty_2
impl Unpin for tcphdr__bindgen_ty_1__bindgen_ty_2
impl UnwindSafe for tcphdr__bindgen_ty_1__bindgen_ty_2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more