BuilderExt

Trait BuilderExt 

Source
pub trait BuilderExt: Sealed {
    // Required method
    fn enable_sapi(&mut self) -> &mut Self;
}
Expand description

An extension for tokio::runtime::Builder to enable SAPI.

This trait is sealed.

Required Methods§

Source

fn enable_sapi(&mut self) -> &mut Self

Ensures that every thread spawned by the runtime will initialize SAPI when started and deinitialize it when stopped.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BuilderExt for Builder

Source§

fn enable_sapi(&mut self) -> &mut Self

Available on crate feature tokio-rt only.

Implementors§