Skip to main content

MessageExt

Trait MessageExt 

Source
pub trait MessageExt: Message {
    // Provided methods
    fn build_payload(self) -> (Payload<Self>, Output<Self>)
       where Self: Sized { ... }
    fn destroy_payload(payload: Payload<Self>) -> Self
       where Self: Sized { ... }
}
Expand description

A trait that extends Message with some helper methods.

Provided Methods§

Source

fn build_payload(self) -> (Payload<Self>, Output<Self>)
where Self: Sized,

Source

fn destroy_payload(payload: Payload<Self>) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<I> MessageExt for I
where I: Message,