Struct ntex_rt::Builder[][src]

pub struct Builder { /* fields omitted */ }
Expand description

Builder struct for a ntex 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.

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

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.