pub trait Message: Send + 'static {
type Response: Send + 'static;
const TYPE_TAG: u64;
}Expand description
A typed message that can be sent to an actor.
Implementors define the response type and a compile-time type tag used for
wire routing. The tag is a u64; the #[derive(Message)] proc-macro
(Phase 2) will generate it via FNV-1a of the fully-qualified type name.
For now, implementations provide it manually.
Required Associated Constants§
Required Associated Types§
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.