pub trait ValidatedVisitor {
    type Error: Error + Debug;
    type Context;

    // Required methods
    fn visit_context<'life0, 'life1, 'async_trait>(
        &'life0 self,
        metadata: &'life1 ProviderMetadata
    ) -> Pin<Box<dyn Future<Output = Result<Self::Context, Self::Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn visit_advisory<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 Self::Context,
        result: Result<ValidatedAdvisory, ValidationError>
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn visit_context<'life0, 'life1, 'async_trait>( &'life0 self, metadata: &'life1 ProviderMetadata ) -> Pin<Box<dyn Future<Output = Result<Self::Context, Self::Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn visit_advisory<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Self::Context, result: Result<ValidatedAdvisory, ValidationError> ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

source§

impl<F, E, Fut> ValidatedVisitor for Fwhere F: Fn(Result<ValidatedAdvisory, ValidationError>) -> Fut, Fut: Future<Output = Result<(), E>>, E: Error,

§

type Error = E

§

type Context = ()