Trait ractor::Message

source ·
pub trait Message: Any + Send + 'static { }
Expand description

Message type for an actor. Generally an enum which muxes the various types of inner-messages the actor supports

Example

pub enum MyMessage {
    /// Record the name to the actor state
    RecordName(String),
    /// Print the recorded name from the state to command line
    PrintName,
}

Implementors§