Trait NetworkServiceHandler

Source
pub trait NetworkServiceHandler: Send + Sync {
    // Required methods
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        connection_pool: Arc<Pool<Postgres>>,
        enveloped_request: Envelope,
    ) -> Pin<Box<dyn Future<Output = Result<Envelope, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_handler_type(&self) -> String;
}

Required Methods§

Source

fn handle<'life0, 'async_trait>( &'life0 self, connection_pool: Arc<Pool<Postgres>>, enveloped_request: Envelope, ) -> Pin<Box<dyn Future<Output = Result<Envelope, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_handler_type(&self) -> String

Implementors§