Trait slack_morphism::SlackSocketModeClientListener[][src]

pub trait SlackSocketModeClientListener {
    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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn on_error<'life0, 'async_trait>(
        &'life0 self,
        error: Box<dyn Error + Send + Sync>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn on_disconnect<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client_id: &'life1 SlackSocketModeWssClientId
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

Implementors