pub struct GenericSource { /* private fields */ }Expand description
Generic source for custom/commercial feeds
Implementations§
Source§impl GenericSource
impl GenericSource
pub fn new(config: SourceConfig) -> Self
Trait Implementations§
Source§impl ThreatSource for GenericSource
impl ThreatSource for GenericSource
Source§fn fetch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<ThreatData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<ThreatData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch latest threat intelligence data from the source
Source§fn config(&self) -> &SourceConfig
fn config(&self) -> &SourceConfig
Get the source configuration
Auto Trait Implementations§
impl Freeze for GenericSource
impl !RefUnwindSafe for GenericSource
impl Send for GenericSource
impl Sync for GenericSource
impl Unpin for GenericSource
impl !UnwindSafe for GenericSource
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