pub trait ServiceCaller<Req, Res, Err> {
// Required method
async fn call_service(&self, req: Req) -> Result<Res, Err>;
}Expand description
A common interface for values that can call a service.
Required Methods§
Sourceasync fn call_service(&self, req: Req) -> Result<Res, Err>
async fn call_service(&self, req: Req) -> Result<Res, Err>
Waits for readiness, then calls the service.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".