pub struct CaptureInfo {
pub start: Option<DateTime<Utc>>,
pub end: Option<DateTime<Utc>>,
pub total_packets: u64,
pub total_bytes: u64,
pub unique_src_ips: HashSet<IpAddr>,
pub unique_dst_ips: HashSet<IpAddr>,
pub flows: Vec<FlowStats>,
}Expand description
Aggregate statistics for an entire capture.
Fields§
§start: Option<DateTime<Utc>>Timestamp of the first packet.
end: Option<DateTime<Utc>>Timestamp of the last packet.
total_packets: u64Total number of packets.
total_bytes: u64Total captured bytes (sum of captured lengths).
unique_src_ips: HashSet<IpAddr>Unique source IP addresses observed.
unique_dst_ips: HashSet<IpAddr>Unique destination IP addresses observed.
flows: Vec<FlowStats>Per-flow statistics, ordered by insertion.
Implementations§
Source§impl CaptureInfo
impl CaptureInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaptureInfo
impl RefUnwindSafe for CaptureInfo
impl Send for CaptureInfo
impl Sync for CaptureInfo
impl Unpin for CaptureInfo
impl UnsafeUnpin for CaptureInfo
impl UnwindSafe for CaptureInfo
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
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