Skip to main content

TeksiloAppBuilderAsyncExt

Trait TeksiloAppBuilderAsyncExt 

Source
pub trait TeksiloAppBuilderAsyncExt {
    // Required method
    fn install_async(self) -> Self;
}
Expand description

Adds install_async to the app builder. Brought into scope with use teksilo_async::TeksiloAppBuilderAsyncExt; (or via the teksilo prelude when the async feature is on).

Required Methods§

Source

fn install_async(self) -> Self

Install the main-thread async runtime: register the AsyncRuntimeHandle and its completion registry in app-state, and wire the executor poll into the event loop via on_loop_tick. After this, handlers can call ctx.spawn_local(...) / spawn_blocking.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TeksiloAppBuilderAsyncExt for TeksiloAppBuilder

Source§

fn install_async(self) -> Self

Implementors§