Struct theatre::Context[][src]

pub struct Context<A> where
    A: 'static + Actor
{ /* fields omitted */ }

Context is the execution context of the actor. It allows for the actor to dynamically retrieve the address of the actor’s Mailbox.

It also provides a method to allow the actor to stop itself.

Implementations

impl<A> Context<A> where
    A: Actor
[src]

pub async fn address(&mut self) -> Addr<A>[src]

Get the address of the mailbox

pub fn shutdown(&mut self)[src]

Trait Implementations

impl<A: Debug> Debug for Context<A> where
    A: 'static + Actor
[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Context<A>

impl<A> Send for Context<A>

impl<A> Sync for Context<A>

impl<A> Unpin for Context<A>

impl<A> !UnwindSafe for Context<A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.