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.

Required Associated Types§

Source

type A: Actor

The type of actor associated with this context.

Required Methods§

Source

fn instance(&self) -> &Instance<Self::A>

The instance associated with this context.

Implementors§

Source§

impl<A: Actor> Actor for &Context<'_, A>

Source§

type A = A

Source§

impl<A: Actor> Actor for &Instance<A>

Source§

type A = A

Source§

impl<A: Actor> Actor for Context<'_, A>

Source§

type A = A

Source§

impl<A: Actor> Actor for Instance<A>

Source§

type A = A