pub enum PayloadSize {
Zero,
NonZero,
Any,
}
Expand description
Classification of TCP payload sizes used in fingerprinting
Variants§
Zero
Packet has no payload (empty) Common in SYN packets and some control messages
NonZero
Packet contains data in the payload Typical for data transfer packets
Any
Matches any payload size Used as a wildcard in signature matching
Implementations§
Source§impl PayloadSize
impl PayloadSize
pub fn distance_payload_size(&self, other: &PayloadSize) -> Option<u32>
Trait Implementations§
Source§impl Clone for PayloadSize
impl Clone for PayloadSize
Source§fn clone(&self) -> PayloadSize
fn clone(&self) -> PayloadSize
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 PayloadSize
impl Debug for PayloadSize
Source§impl Display for PayloadSize
impl Display for PayloadSize
Source§impl FromStr for PayloadSize
impl FromStr for PayloadSize
Source§impl Hash for PayloadSize
impl Hash for PayloadSize
Source§impl PartialEq for PayloadSize
impl PartialEq for PayloadSize
impl Copy for PayloadSize
impl Eq for PayloadSize
impl StructuralPartialEq for PayloadSize
Auto Trait Implementations§
impl Freeze for PayloadSize
impl RefUnwindSafe for PayloadSize
impl Send for PayloadSize
impl Sync for PayloadSize
impl Unpin for PayloadSize
impl UnwindSafe for PayloadSize
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