pub trait SlackSocketModeClientListener {
    // Required methods
    fn on_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client_id: &'life1 SlackSocketModeWssClientId,
        message_body: String
    ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn on_error<'life0, 'async_trait>(
        &'life0 self,
        error: Box<dyn Error + Send + Sync + 'static>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn on_disconnect<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client_id: &'life1 SlackSocketModeWssClientId
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn on_message<'life0, 'life1, 'async_trait>( &'life0 self, client_id: &'life1 SlackSocketModeWssClientId, message_body: String ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn on_error<'life0, 'async_trait>( &'life0 self, error: Box<dyn Error + Send + Sync + 'static> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn on_disconnect<'life0, 'life1, 'async_trait>( &'life0 self, client_id: &'life1 SlackSocketModeWssClientId ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§