Trait Actor
Source pub trait Actor: Mailbox {
type A: Actor;
// Required method
fn instance(&self) -> &Instance<Self::A>;
}
Expand description
A typed actor context, providing both a Mailbox
and an Instance
.
Note: Send and Sync markers are here only temporarily in order to bridge
the transition to the context types, away from the [crate::cap
] module.
The type of actor associated with this context.
The instance associated with this context.