pub trait MessageTestExt: Sized {
// Required method
fn to_posted(self, kind: MessageKind) -> PostedMessage;
}Expand description
Helper trait to simplify constructing messages for tests.
Required Methods§
Sourcefn to_posted(self, kind: MessageKind) -> PostedMessage
fn to_posted(self, kind: MessageKind) -> PostedMessage
Wraps the message into a PostedMessage with the given kind.
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.