pub struct TCPSegment {
pub source_port: u16,
pub destination_port: u16,
pub sequence_number: u32,
pub acknowledgment_number: u32,
pub data_offset: u8,
pub flags: TCPFlags,
pub window_size: u16,
pub checksum: u16,
pub urgent_pointer: u16,
pub options: Vec<TCPOption>,
}Expand description
TCP (Layer 4) Segment
Fields§
§source_port: u16§destination_port: u16§sequence_number: u32§acknowledgment_number: u32§data_offset: u8§flags: TCPFlags§window_size: u16§checksum: u16§urgent_pointer: u16§options: Vec<TCPOption>Trait Implementations§
Source§impl Clone for TCPSegment
impl Clone for TCPSegment
Source§fn clone(&self) -> TCPSegment
fn clone(&self) -> TCPSegment
Returns a duplicate 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 moreSource§impl Debug for TCPSegment
impl Debug for TCPSegment
Source§impl<'de> Deserialize<'de> for TCPSegment
impl<'de> Deserialize<'de> for TCPSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TCPSegment
impl RefUnwindSafe for TCPSegment
impl Send for TCPSegment
impl Sync for TCPSegment
impl Unpin for TCPSegment
impl UnwindSafe for TCPSegment
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