Trait json_rpc2::futures::Service[][src]

pub trait Service {
#[must_use]    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 mut Request
    ) -> Pin<Box<dyn Future<Output = Result<Option<Response>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Trait for async services that maybe handle a request.

Required methods

#[must_use]fn handle<'life0, 'life1, 'async_trait>(
    &'life0 self,
    req: &'life1 mut Request
) -> Pin<Box<dyn Future<Output = Result<Option<Response>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

See Service for more information.

Loading content...

Implementors

Loading content...