[][src]Type Definition herbert::Message

type Message = Box<dyn Any + Send>;

The type signature of the messages that are consumed by actors.

In order to support heterogenous message values between actors, a message is expressed as a trait object statisfying the Any and Send traits. The value is wrapped in a Box so the compiler can reason about its size.

An actor must downcast the trait object back into a concrete type using the downcast_ref method of the Any trait.