Trait Reply

Source
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§

Source

fn reply<Rs>( &mut self, to: RequestHeader, response: Rs, ) -> impl Future<Output = Result<(), ErrorOf<SendErrorKind>>> + Send
where Rs: Send, Response<Rs>: Message,

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.

Implementors§

Source§

impl<Ctx> Reply for Ctx
where Ctx: Messaging + Send,