pub struct ThreatActorCatalog { /* private fields */ }Expand description
In-memory catalog of caller-supplied actor profiles.
Implementations§
Source§impl ThreatActorCatalog
impl ThreatActorCatalog
pub fn new() -> Self
pub fn record( &mut self, actor: ThreatActorProfile, ) -> Option<ThreatActorProfile>
pub fn get(&self, actor_id: &str) -> Option<&ThreatActorProfile>
pub fn actors_at_or_above( &self, minimum: ThreatSeverity, ) -> Vec<&ThreatActorProfile>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ThreatActorCatalog
impl Clone for ThreatActorCatalog
Source§fn clone(&self) -> ThreatActorCatalog
fn clone(&self) -> ThreatActorCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThreatActorCatalog
impl Debug for ThreatActorCatalog
Source§impl Default for ThreatActorCatalog
impl Default for ThreatActorCatalog
Source§fn default() -> ThreatActorCatalog
fn default() -> ThreatActorCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreatActorCatalog
impl RefUnwindSafe for ThreatActorCatalog
impl Send for ThreatActorCatalog
impl Sync for ThreatActorCatalog
impl Unpin for ThreatActorCatalog
impl UnsafeUnpin for ThreatActorCatalog
impl UnwindSafe for ThreatActorCatalog
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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