Trait json_rpc2::futures::Service [−][src]
Trait for async services that maybe handle a request.
Only available with the async
feature.
Required methods
#[must_use]fn handle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 mut Request,
ctx: &'life2 Context<T>
) -> Pin<Box<dyn Future<Output = Result<Option<Response>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: &'life1 mut Request,
ctx: &'life2 Context<T>
) -> Pin<Box<dyn Future<Output = Result<Option<Response>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
See Service for more information.