Skip to main content

RequestReplyExt

Trait RequestReplyExt 

Source
pub trait RequestReplyExt<P> {
    // Required method
    fn reply_to<M>(self, message_id: M) -> Self
       where M: Into<MessageId>,
             Self: Sized;
}
Expand description

.reply_to(msg) syntax sugar for requests.

Required Methods§

Source

fn reply_to<M>(self, message_id: M) -> Self
where M: Into<MessageId>, Self: Sized,

Replaces .reply_parameters(ReplyParameters::new(msg.id)) with .reply_to(msg.id) or .reply_to(msg)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§