Skip to main content

Message

Trait Message 

Source
pub trait Message:
    Debug
    + Clone
    + Send
    + Serialize
    + for<'de> Deserialize<'de>
    + 'static {
    // Provided methods
    fn name(&self) -> &'static str { ... }
    fn protocol(&self) -> &'static str { ... }
}
Expand description

Represents a message that can be sent between actors and across nodes.

Never implement it by hand, use the #[message] macro instead.

Provided Methods§

Source

fn name(&self) -> &'static str

Source

fn protocol(&self) -> &'static str

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§