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§
Sourcefn runtime(self) -> Self
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".