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: ActorPath§system: 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.