pub struct NetworkAnalyzer { /* private fields */ }Expand description
Network analyzer combining multiple detection methods
Implementations§
Source§impl NetworkAnalyzer
impl NetworkAnalyzer
Sourcepub fn add_transaction(
&mut self,
from: &str,
to: &str,
amount: f64,
timestamp: DateTime<Utc>,
)
pub fn add_transaction( &mut self, from: &str, to: &str, amount: f64, timestamp: DateTime<Utc>, )
Add transaction to the analyzer
Sourcepub fn analyze_all(&self) -> NetworkAnalysisReport
pub fn analyze_all(&self) -> NetworkAnalysisReport
Run all analysis methods
Sourcepub fn get_account_stats(&self, account_id: &str) -> Option<AccountStats>
pub fn get_account_stats(&self, account_id: &str) -> Option<AccountStats>
Get account statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetworkAnalyzer
impl RefUnwindSafe for NetworkAnalyzer
impl Send for NetworkAnalyzer
impl Sync for NetworkAnalyzer
impl Unpin for NetworkAnalyzer
impl UnwindSafe for NetworkAnalyzer
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