pub struct PacketFeatures {
pub timestamp: DateTime<Utc>,
pub src_ip: String,
pub dst_ip: String,
pub src_port: Option<u16>,
pub dst_port: Option<u16>,
pub protocol: String,
pub packet_size: u32,
pub flags: HashMap<String, bool>,
pub payload_size: u32,
pub ttl: Option<u8>,
pub window_size: Option<u16>,
pub custom_features: HashMap<String, Value>,
}Fields§
§timestamp: DateTime<Utc>§src_ip: String§dst_ip: String§src_port: Option<u16>§dst_port: Option<u16>§protocol: String§packet_size: u32§flags: HashMap<String, bool>§payload_size: u32§ttl: Option<u8>§window_size: Option<u16>§custom_features: HashMap<String, Value>Trait Implementations§
Source§impl Clone for PacketFeatures
impl Clone for PacketFeatures
Source§fn clone(&self) -> PacketFeatures
fn clone(&self) -> PacketFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PacketFeatures
impl Debug for PacketFeatures
Source§impl<'de> Deserialize<'de> for PacketFeatures
impl<'de> Deserialize<'de> for PacketFeatures
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 PacketFeatures
impl RefUnwindSafe for PacketFeatures
impl Send for PacketFeatures
impl Sync for PacketFeatures
impl Unpin for PacketFeatures
impl UnsafeUnpin for PacketFeatures
impl UnwindSafe for PacketFeatures
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more