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, 'life1, 'async_trait>(
&'life0 self,
distribution: &'life1 Distribution
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredAdvisory>, Self::Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: '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