pub struct RouterState { /* private fields */ }
Expand description

The state for the router.

Implementations

Gets the load state of the router. You’ll still need to call .get() after this (this just returns a ReadSignal to derive other state from in a create_memo or the like).

Sets the load state of the router.

Gets the last verdict.

Sets the last verdict.

Orders the router to reload the current page as if you’d called navigate() to it (but that would do nothing). This enables reloading in an SPA style (but you should almost never need it).

Warning: if you’re trying to rest your app, do NOT use this! Instead, reload the page fully through web_sys.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Creates a default instance of the router state intended for server-side usage.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.