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

Enables page reruns by registering a RuntimeLayer.

Call this once when building a router that serves interactive pages. Register your application’s pathless layers first so the runtime layer can rewrite page reruns to GET before those layers run. See RuntimeLayer for the request format and rewrite behavior.

Register procedures and shards separately through discovery or explicit registration.

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§