Struct tiny_tokio_actor::ActorContext[][src]

pub struct ActorContext<E: SystemEvent> {
    pub path: ActorPath,
    pub system: ActorSystem<E>,
}
Expand description

The actor context gives a running actor access to its path, as well as the system that is running it.

Fields

path: ActorPathsystem: ActorSystem<E>

Implementations

Create a child actor under this actor.

Retrieve a child actor running under this actor.

Retrieve or create a new child under this actor if it does not exist yet

Stops the child actor

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.