Struct yew_simple::RouterTask

source ·
pub struct RouterTask<CTX: 'static, COMP: Component<CTX>> { /* private fields */ }
Expand description

TODO: A handle which helps to cancel the router. Uses removeEventListener

Implementations

Start the Routing Task in the environment.

Ownership of this Task should typically be put in the Model.

Routing will stop if this Task is dropped.

Retrieve the current url of the application.

Set the state of the history, including the url.

This will not trigger the router to change. If a state change is required it is the user’s job to propogate the Message.

Push a hash based on the current url.

Trait Implementations

Executes the destructor for this type. Read more

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 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.
The type returned in the event of a conversion error.
Performs the conversion.