Builder struct for a actix runtime.
Builder::build to create a system and start actors.
Builder::run to start the tokio runtime and
run a function in its context.
Sets the name of the System.
pub fn stop_on_panic(self, stop_on_panic: bool) -> Self[src]
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.
pub fn build(self) -> SystemRunner[src]
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.
f get called within tokio runtime context.
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
type Error = Infallible
The type returned in the event of a conversion error.