sui_bridge::server::handler

Trait ActionVerifier

Source
pub trait ActionVerifier<K>: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn verify<'life0, 'async_trait>(
        &'life0 self,
        key: K,
    ) -> Pin<Box<dyn Future<Output = BridgeResult<BridgeAction>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn verify<'life0, 'async_trait>( &'life0 self, key: K, ) -> Pin<Box<dyn Future<Output = BridgeResult<BridgeAction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§