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