pub trait OwnedSender<Req, Res>where
Self: Sized,{
// Required methods
fn send_and_back(
self,
req: Req,
) -> impl Future<Output = (Self, Result<Res, Status>)> + Send;
fn send(&self, req: Req) -> impl Future<Output = Result<Res, Status>> + Send;
}Expand description
Main trait for unary requests.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.