pub struct ThreatDetector { /* private fields */ }Expand description
Threat detector
Implementations§
Source§impl ThreatDetector
impl ThreatDetector
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), CryptographicError>
Sourcepub fn add_threat_signature(&mut self, signature: ThreatSignature)
pub fn add_threat_signature(&mut self, signature: ThreatSignature)
Register a threat signature.
Sourcepub fn get_threat_signature(
&self,
signature_id: &str,
) -> Option<&ThreatSignature>
pub fn get_threat_signature( &self, signature_id: &str, ) -> Option<&ThreatSignature>
Look up a threat signature by id.
Sourcepub fn list_threat_signatures(&self) -> impl Iterator<Item = &ThreatSignature>
pub fn list_threat_signatures(&self) -> impl Iterator<Item = &ThreatSignature>
Iterate over all registered threat signatures.
Sourcepub fn add_detection_rule(&mut self, rule: DetectionRule)
pub fn add_detection_rule(&mut self, rule: DetectionRule)
Add a detection rule.
Sourcepub fn list_detection_rules(&self) -> impl Iterator<Item = &DetectionRule>
pub fn list_detection_rules(&self) -> impl Iterator<Item = &DetectionRule>
Iterate over all registered detection rules.
Auto Trait Implementations§
impl Freeze for ThreatDetector
impl RefUnwindSafe for ThreatDetector
impl Send for ThreatDetector
impl Sync for ThreatDetector
impl Unpin for ThreatDetector
impl UnsafeUnpin for ThreatDetector
impl UnwindSafe for ThreatDetector
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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