Trait hotfix::Application

source ·
pub trait Application<M>: Send + Sync + 'static {
    // Required methods
    fn on_message_from_app<'life0, 'async_trait>(
        &'life0 self,
        msg: M
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn on_message_to_app<'life0, 'async_trait>(
        &'life0 self,
        msg: M
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn on_logout<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        reason: &'life1 str
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn on_message_from_app<'life0, 'async_trait>( &'life0 self, msg: M ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn on_message_to_app<'life0, 'async_trait>( &'life0 self, msg: M ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn on_logout<'life0, 'life1, 'async_trait>( &'life0 mut self, reason: &'life1 str ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§