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.
Required Associated Types§
Required Methods§
fn call<'s>(
&'s self,
req: Req,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + 's>>where
Req: 's,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".