pub trait ServiceObject<Req> {
type Response;
type Error;
// Required method
fn call<'s>(
&'s self,
req: Req,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + 's>>
where Req: 's;
}
Expand description
Object-safe counterpart of Service.