[][src]Struct pnet::packet::tcp::Tcp

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>,
}

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

impl Clone for Tcp[src]

impl Debug for Tcp[src]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.