Check

Trait Check 

Source
pub trait Check {
    // Required method
    fn check<'life0, 'life1, 'async_trait>(
        &'life0 self,
        csaf: &'life1 Csaf,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<CheckError>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn check<'life0, 'life1, 'async_trait>( &'life0 self, csaf: &'life1 Csaf, ) -> Pin<Box<dyn Future<Output = Result<Vec<CheckError>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform a check on a CSAF document

Implementors§

Source§

impl<F> Check for F
where F: Fn(&Csaf) -> Vec<CheckError>,

Implementation to allow a simple function style check