Skip to main content

Message

Trait Message 

Source
pub trait Message: Send + 'static {
    type Result: Send + 'static;
}
Expand description

Types that can be sent between actors.

Required Associated Types§

Source

type Result: Send + 'static

The type of the response produced when this message is handled.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Message for ()

Source§

impl<M> Message for Arc<M>
where M: Message + Sync,

Source§

impl<M> Message for Box<M>
where M: Message,

Implementors§

Source§

impl Message for BinaryMessage

Available on crate feature ipc only.
Source§

impl Message for CronSignal

Available on crate feature cron only.
Source§

impl Message for Signal

Source§

impl<A> Message for SupervisionEvent<A>
where A: Actor,

Source§

impl<A> Message for Supervisor<A>
where A: Actor,

Source§

impl<M> Message for Observer<M>
where M: Message,

Available on crate feature observer only.
Source§

impl<M> Message for Timed<M>
where M: Message,