Skip to main content

RouterBuilderRuntimeExt

Trait RouterBuilderRuntimeExt 

Source
pub trait RouterBuilderRuntimeExt {
    // Required method
    fn runtime(self) -> Self;
}
Available on crate feature router only.
Expand description

Sets up the browser runtime on a RouterBuilder.

Required Methods§

Source

fn runtime(self) -> Self

Mounts the routes the browser runtime talks to on its own, such as the route a page re-runs through, and marks the router as set up with RuntimeSetup.

Every application using the runtime calls this once. The routes behind the application’s own procedures and shards are registered separately, by discovery or by hand.

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 RouterBuilderRuntimeExt for RouterBuilder

Source§

fn runtime(self) -> Self

Implementors§