Trait ate::service::ServiceHandler [−][src]
pub trait ServiceHandler<REQ: ?Sized, RES: ?Sized, ERR: ?Sized> where
REQ: Serialize + DeserializeOwned + Clone + Sync + Send,
RES: Serialize + DeserializeOwned + Clone + Sync + Send,
ERR: Serialize + DeserializeOwned + Clone + Sync + Send, { #[must_use] fn process<'a, 'life0, 'async_trait>(
&'life0 self,
request: REQ,
context: InvocationContext<'a>
) -> Pin<Box<dyn Future<Output = Result<RES, ServiceError<ERR>>> + Send + 'async_trait>>
where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait; }
Required methods
#[must_use]fn process<'a, 'life0, 'async_trait>(
&'life0 self,
request: REQ,
context: InvocationContext<'a>
) -> Pin<Box<dyn Future<Output = Result<RES, ServiceError<ERR>>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn process<'a, 'life0, 'async_trait>(&'life0 self,
request: REQ,
context: InvocationContext<'a>
) -> Pin<Box<dyn Future<Output = Result<RES, ServiceError<ERR>>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,