Struct netsim_embed::tcp::Tcp [−][src]
pub struct Tcp {
pub source: u16,
pub destination: u16,
pub sequence: u32,
pub acknowledgement: u32,
pub data_offset: u8,
pub reserved: u8,
pub flags: u16,
pub window: u16,
pub checksum: u16,
pub urgent_ptr: u16,
pub options: Vec<TcpOption, Global>,
pub payload: Vec<u8, Global>,
}Expand description
Represents a TCP packet.
Fields
source: u16destination: u16sequence: u32acknowledgement: u32data_offset: u8reserved: u8flags: u16window: u16checksum: u16urgent_ptr: u16options: Vec<TcpOption, Global>payload: Vec<u8, Global>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tcp
impl Send for Tcp
impl Sync for Tcp
impl Unpin for Tcp
impl UnwindSafe for Tcp
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,