pub struct AnomalyScore {
pub inbound: i32,
pub outbound: i32,
pub sqli: i32,
pub xss: i32,
pub rfi: i32,
pub lfi: i32,
pub rce: i32,
pub php: i32,
pub session_fixation: i32,
}Expand description
Anomaly score tracker.
Fields§
§inbound: i32Total inbound score.
outbound: i32Total outbound score.
sqli: i32SQL injection specific score.
xss: i32XSS specific score.
rfi: i32RFI specific score.
lfi: i32LFI specific score.
rce: i32RCE specific score.
php: i32PHP injection specific score.
session_fixation: i32Session fixation specific score.
Implementations§
Source§impl AnomalyScore
impl AnomalyScore
Sourcepub fn add_inbound(&mut self, score: i32)
pub fn add_inbound(&mut self, score: i32)
Add to inbound score.
Sourcepub fn add_outbound(&mut self, score: i32)
pub fn add_outbound(&mut self, score: i32)
Add to outbound score.
Sourcepub fn inbound_exceeded(&self, threshold: i32) -> bool
pub fn inbound_exceeded(&self, threshold: i32) -> bool
Check if inbound threshold exceeded.
Sourcepub fn outbound_exceeded(&self, threshold: i32) -> bool
pub fn outbound_exceeded(&self, threshold: i32) -> bool
Check if outbound threshold exceeded.
Sourcepub fn sync_to_tx<C: MutableCollection>(&self, tx: &mut C)
pub fn sync_to_tx<C: MutableCollection>(&self, tx: &mut C)
Sync scores to TX collection.
Sourcepub fn sync_from_tx<C: Collection>(&mut self, tx: &C)
pub fn sync_from_tx<C: Collection>(&mut self, tx: &C)
Load scores from TX collection.
Trait Implementations§
Source§impl Clone for AnomalyScore
impl Clone for AnomalyScore
Source§fn clone(&self) -> AnomalyScore
fn clone(&self) -> AnomalyScore
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 moreSource§impl Debug for AnomalyScore
impl Debug for AnomalyScore
Source§impl Default for AnomalyScore
impl Default for AnomalyScore
Source§fn default() -> AnomalyScore
fn default() -> AnomalyScore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnomalyScore
impl RefUnwindSafe for AnomalyScore
impl Send for AnomalyScore
impl Sync for AnomalyScore
impl Unpin for AnomalyScore
impl UnwindSafe for AnomalyScore
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