pub trait Handler {
    // Required methods
    fn validate<'life0, 'async_trait>(
        &'life0 self,
        tx: Arc<Transaction>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn check<'life0, 'async_trait, S>(
        &'life0 self,
        state: Arc<S>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where S: 'async_trait + StateRead,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn execute<'life0, 'life1, 'async_trait, S>(
        &'life0 self,
        state: &'life1 mut S
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where S: 'async_trait + StateWrite,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn validate<'life0, 'async_trait>( &'life0 self, tx: Arc<Transaction> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn check<'life0, 'async_trait, S>( &'life0 self, state: Arc<S> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateRead, Self: 'async_trait, 'life0: 'async_trait,

source

fn execute<'life0, 'life1, 'async_trait, S>( &'life0 self, state: &'life1 mut S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Handler for Input

source§

fn validate<'life0, 'async_trait>( &'life0 self, tx: Arc<Transaction> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn check<'life0, 'async_trait, S>( &'life0 self, state: Arc<S> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateRead, Self: 'async_trait, 'life0: 'async_trait,

source§

fn execute<'life0, 'life1, 'async_trait, S>( &'life0 self, state: &'life1 mut S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl Handler for Delegate

source§

fn validate<'life0, 'async_trait>( &'life0 self, _tx: Arc<Transaction> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn check<'life0, 'async_trait, S>( &'life0 self, _state: Arc<S> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateRead, Self: 'async_trait, 'life0: 'async_trait,

source§

fn execute<'life0, 'life1, 'async_trait, S>( &'life0 self, _state: &'life1 mut S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl Handler for Transfer

source§

fn validate<'life0, 'async_trait>( &'life0 self, tx: Arc<Transaction> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn check<'life0, 'async_trait, S>( &'life0 self, state: Arc<S> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateRead, Self: 'async_trait, 'life0: 'async_trait,

source§

fn execute<'life0, 'life1, 'async_trait, S>( &'life0 self, state: &'life1 mut S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl Handler for Undelegate

source§

fn validate<'life0, 'async_trait>( &'life0 self, _tx: Arc<Transaction> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn check<'life0, 'async_trait, S>( &'life0 self, _state: Arc<S> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateRead, Self: 'async_trait, 'life0: 'async_trait,

source§

fn execute<'life0, 'life1, 'async_trait, S>( &'life0 self, _state: &'life1 mut S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl Handler for Transaction

source§

fn validate<'life0, 'async_trait>( &'life0 self, tx: Arc<Transaction> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn check<'life0, 'async_trait, S>( &'life0 self, state: Arc<S> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateRead, Self: 'async_trait, 'life0: 'async_trait,

source§

fn execute<'life0, 'life1, 'async_trait, S>( &'life0 self, state: &'life1 mut S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + StateWrite, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§