pub struct Tcp {
pub source: u16,
pub destination: u16,
pub sequence: u32,
pub acknowledgement: u32,
pub data_offset: u8,
pub reserved: u8,
pub flags: u8,
pub window: u16,
pub checksum: u16,
pub urgent_ptr: u16,
pub options: Vec<TcpOption>,
pub payload: Vec<u8>,
}
Expand description
Represents a TCP packet.
Fields§
§source: u16
§destination: u16
§sequence: u32
§acknowledgement: u32
§data_offset: u8
§reserved: u8
§flags: u8
§window: u16
§checksum: u16
§urgent_ptr: u16
§options: Vec<TcpOption>
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tcp
impl RefUnwindSafe for Tcp
impl Send for Tcp
impl Sync for Tcp
impl Unpin for Tcp
impl UnwindSafe for Tcp
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