Struct actix_rt::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

Builder struct for a actix runtime.

Either use Builder::build to create a system and start actors. Alternatively, use Builder::run to start the tokio runtime and run a function in its context.

Implementations

Sets the name of the System.

Set the Clock instance that will be used by this System.

Defaults to the system clock.

Sets the option ‘stop_on_panic’ which controls whether the System is stopped when an uncaught panic is thrown from a worker thread.

Defaults to false.

Create new System.

This method panics if it can not create tokio runtime

This function will start tokio runtime and will finish once the System::stop() message get called. Function f get called within tokio runtime context.

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.