Struct actix::sync::SyncContext

source ·
pub struct SyncContext<A>where
    A: Actor<Context = SyncContext<A>>,
{ /* private fields */ }
Expand description

Sync actor execution context

Trait Implementations§

Stop current actor. SyncContext creates and starts new actor.

Terminate actor execution. SyncContext creates and starts new actor.

Actor execution state

Pack message into suitable envelope

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.