Trait ghost_crab::handler::Handler

source ·
pub trait Handler {
    // Required methods
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        params: Context,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_source(&self) -> String;
    fn is_template(&self) -> bool;
    fn get_event_signature(&self) -> String;
}

Required Methods§

source

fn handle<'life0, 'async_trait>( &'life0 self, params: Context, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_source(&self) -> String

source

fn is_template(&self) -> bool

source

fn get_event_signature(&self) -> String

Implementors§