pub struct NetworkEvent {
pub timestamp: SystemTime,
pub event_type: NetworkEventType,
pub app_path: Option<PathBuf>,
pub protocol: u8,
pub local_addr: Option<IpAddr>,
pub remote_addr: Option<IpAddr>,
pub local_port: u16,
pub remote_port: u16,
pub filter_id: Option<u64>,
pub layer_id: Option<u16>,
}Expand description
Network event from WFP
Represents a network event captured by the Windows Filtering Platform. Used in learning mode to identify applications that were blocked.
Fields§
§timestamp: SystemTimeWhen the event occurred
event_type: NetworkEventTypeType of event (Classify Drop, Classify Allow, etc.)
app_path: Option<PathBuf>Application path that triggered the event (if available)
protocol: u8IP protocol (TCP=6, UDP=17, etc.)
local_addr: Option<IpAddr>Local IP address
remote_addr: Option<IpAddr>Remote IP address
local_port: u16Local port
remote_port: u16Remote port
filter_id: Option<u64>Filter ID that triggered the event (for CLASSIFY_DROP)
layer_id: Option<u16>Layer ID where event occurred
Trait Implementations§
Source§impl Clone for NetworkEvent
impl Clone for NetworkEvent
Source§fn clone(&self) -> NetworkEvent
fn clone(&self) -> NetworkEvent
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 moreAuto Trait Implementations§
impl Freeze for NetworkEvent
impl RefUnwindSafe for NetworkEvent
impl Send for NetworkEvent
impl Sync for NetworkEvent
impl Unpin for NetworkEvent
impl UnsafeUnpin for NetworkEvent
impl UnwindSafe for NetworkEvent
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