#[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 unsafe fn res1_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_res1_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn doff(&self) -> u16
pub fn set_doff(&mut self, val: u16)
pub unsafe fn doff_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_doff_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn fin(&self) -> u16
pub fn set_fin(&mut self, val: u16)
pub unsafe fn fin_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_fin_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn syn(&self) -> u16
pub fn set_syn(&mut self, val: u16)
pub unsafe fn syn_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_syn_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn rst(&self) -> u16
pub fn set_rst(&mut self, val: u16)
pub unsafe fn rst_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_rst_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn psh(&self) -> u16
pub fn set_psh(&mut self, val: u16)
pub unsafe fn psh_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_psh_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn ack(&self) -> u16
pub fn set_ack(&mut self, val: u16)
pub unsafe fn ack_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_ack_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn urg(&self) -> u16
pub fn set_urg(&mut self, val: u16)
pub unsafe fn urg_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_urg_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, val: u16, )
pub fn res2(&self) -> u16
pub fn set_res2(&mut self, val: u16)
pub unsafe fn res2_raw(this: *const tcphdr__bindgen_ty_1__bindgen_ty_2) -> u16
pub unsafe fn set_res2_raw( this: *mut tcphdr__bindgen_ty_1__bindgen_ty_2, 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