Skip to main content

CustomVerifier

Trait CustomVerifier 

Source
pub trait CustomVerifier:
    Send
    + Sync
    + 'static {
    // Required method
    fn verify<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        args: &'life1 Value,
        workspace: &'life2 Path,
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DriverError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn verify<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, args: &'life1 Value, workspace: &'life2 Path, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DriverError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Ok(None) ⇒ pass; Ok(Some(message)) ⇒ fail; Err ⇒ infrastructure problem (propagated up).

Implementors§