pub struct ThreatFeedCatalog { /* private fields */ }Expand description
In-memory catalog of caller-supplied feed-entry records.
Implementations§
Source§impl ThreatFeedCatalog
impl ThreatFeedCatalog
pub fn new() -> Self
pub fn record(&mut self, entry: ThreatFeedEntry) -> Option<ThreatFeedEntry>
pub fn entries_from(&self, source: ThreatFeedSource) -> Vec<&ThreatFeedEntry>
pub fn entries_at_or_above( &self, minimum: ThreatSeverity, ) -> Vec<&ThreatFeedEntry>
pub fn entries_updated_at_or_after( &self, timestamp: u64, ) -> Vec<&ThreatFeedEntry>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ThreatFeedCatalog
impl Clone for ThreatFeedCatalog
Source§fn clone(&self) -> ThreatFeedCatalog
fn clone(&self) -> ThreatFeedCatalog
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 ThreatFeedCatalog
impl Debug for ThreatFeedCatalog
Source§impl Default for ThreatFeedCatalog
impl Default for ThreatFeedCatalog
Source§fn default() -> ThreatFeedCatalog
fn default() -> ThreatFeedCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreatFeedCatalog
impl RefUnwindSafe for ThreatFeedCatalog
impl Send for ThreatFeedCatalog
impl Sync for ThreatFeedCatalog
impl Unpin for ThreatFeedCatalog
impl UnsafeUnpin for ThreatFeedCatalog
impl UnwindSafe for ThreatFeedCatalog
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