Message

Trait Message 

Source
pub trait Message
where Self: Clone,
{ type Discriminant: Discriminant<Self>; // Required method fn discriminant(&self) -> Self::Discriminant; }
Expand description

A trait that describes a message that can be seent through a bus

Required Associated Types§

Required Methods§

Source

fn discriminant(&self) -> Self::Discriminant

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.

Implementations on Foreign Types§

Source§

impl Message for String

Implementors§