pub trait ActorRefFactory {
type Message: MessageBounds;
// Required method
fn actor_ref(&self) -> ActorRef<Self::Message>;
}Expand description
A trait for things that have associated actor references
Required Associated Types§
Sourcetype Message: MessageBounds
type Message: MessageBounds
The type of messages carried by references produced by this factory
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".