Trait csaf_walker::source::Source
source · pub trait Source: Clone {
type Error: Display + Debug;
// Required methods
fn load_metadata<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<ProviderMetadata, Self::Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load_index<'life0, 'async_trait>(
&'life0 self,
context: DistributionContext
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredAdvisory>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load_advisory<'life0, 'async_trait>(
&'life0 self,
advisory: DiscoveredAdvisory
) -> Pin<Box<dyn Future<Output = Result<RetrievedAdvisory, Self::Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A source of CSAF documents
Required Associated Types§
Required Methods§
fn load_metadata<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<ProviderMetadata, Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_index<'life0, 'async_trait>(
&'life0 self,
context: DistributionContext
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredAdvisory>, Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_advisory<'life0, 'async_trait>(
&'life0 self,
advisory: DiscoveredAdvisory
) -> Pin<Box<dyn Future<Output = Result<RetrievedAdvisory, Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Object Safety§
This trait is not object safe.