Trait vin_core::Handler

source ·
pub trait Handler<M: Message> {
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        msg: M
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Handler for specifying message handling logic.

Required Methods

Implementors