pub trait Reply: Messaging + Send {
// Required method
fn reply<Rs>(
&mut self,
to: RequestHeader,
response: Rs,
) -> impl Future<Output = Result<(), ErrorOf<SendErrorKind>>> + Send
where Rs: Send,
Response<Rs>: Message;
}
Required Methods§
fn reply<Rs>( &mut self, to: RequestHeader, response: Rs, ) -> impl Future<Output = Result<(), ErrorOf<SendErrorKind>>> + Send
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.