Handle

Trait Handle 

Source
pub trait Handle: Send {
    // Required method
    fn handle<'life0, 'async_trait>(
        self: Box<Self>,
        client: &'life0 ObservabilityClient,
    ) -> Pin<Box<dyn Future<Output = Result<(), ObservabilityError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Each message type implements Handle to execute itself using the client.

Required Methods§

Source

fn handle<'life0, 'async_trait>( self: Box<Self>, client: &'life0 ObservabilityClient, ) -> Pin<Box<dyn Future<Output = Result<(), ObservabilityError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§