pub struct NetworkIntelligenceEngine { /* private fields */ }Implementations§
Source§impl NetworkIntelligenceEngine
impl NetworkIntelligenceEngine
pub fn new() -> Self
pub fn analyze_connection( &mut self, connection: &NetworkConnection, ) -> ConnectionIntelligence
pub fn get_recent_anomalies(&self, limit: usize) -> Vec<&NetworkAnomaly>
pub fn get_port_scan_alerts(&self) -> Vec<PortScanDetection>
pub fn get_connection_stats(&self) -> ConnectionStats
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetworkIntelligenceEngine
impl RefUnwindSafe for NetworkIntelligenceEngine
impl Send for NetworkIntelligenceEngine
impl Sync for NetworkIntelligenceEngine
impl Unpin for NetworkIntelligenceEngine
impl UnsafeUnpin for NetworkIntelligenceEngine
impl UnwindSafe for NetworkIntelligenceEngine
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