[][src]Trait cometd::client::Handler

pub trait Handler: Send + Sync {
#[must_use]    fn on_error<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _error: CometError
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn on_reconnect<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn on_message<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _packet: Packet
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Provided methods

#[must_use]fn on_error<'life0, 'async_trait>(
    &'life0 self,
    _ctx: Context,
    _error: CometError
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_reconnect<'life0, 'async_trait>(
    &'life0 self,
    _ctx: Context
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_message<'life0, 'async_trait>(
    &'life0 self,
    _ctx: Context,
    _packet: Packet
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl Handler for DefaultHandler[src]

Loading content...