pub struct TCPPacketInfo {
pub payload: Payload,
pub ts: Duration,
pub direction: PacketDirection,
pub noise: NoiseType,
pub s_flag: bool,
pub a_flag: bool,
pub f_flag: bool,
pub r_flag: bool,
pub u_flag: bool,
pub p_flag: bool,
}Expand description
Metadata of TCP packet Some information about a TCP packet
Fields§
§payload: Payloadthe payload of the packet
ts: Durationthe timestamp of the packet
direction: PacketDirectionthe direction of the packet
noise: NoiseTypewhether the packet is a noise
s_flag: boolSYN flag?
a_flag: boolACK flag?
f_flag: boolFIN flag?
r_flag: boolRST flag?
u_flag: boolURG flag?
p_flag: boolPSH flag?
Trait Implementations§
Source§impl Clone for TCPPacketInfo
impl Clone for TCPPacketInfo
Source§fn clone(&self) -> TCPPacketInfo
fn clone(&self) -> TCPPacketInfo
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 TCPPacketInfo
impl Debug for TCPPacketInfo
Source§impl PacketInfo for TCPPacketInfo
impl PacketInfo for TCPPacketInfo
Auto Trait Implementations§
impl Freeze for TCPPacketInfo
impl RefUnwindSafe for TCPPacketInfo
impl Send for TCPPacketInfo
impl Sync for TCPPacketInfo
impl Unpin for TCPPacketInfo
impl UnwindSafe for TCPPacketInfo
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