Message

Trait Message 

Source
pub trait Message:
    Clone
    + Send
    + Sync
    + 'static {
    type Response: Send + Sync + 'static;
}
Expand description

Defines what an actor will receive as its message, and with what it should respond.

Required Associated Types§

Source

type Response: Send + Sync + 'static

response an actor should give when it receives this message. If no response is required, use ().

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§