Trait filament_app::handler::Handler
source · 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§
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,
Object Safety§
This trait is not object safe.