yew_router_nested::route

Trait RouteState

Source
pub trait RouteState:
    Serialize
    + DeserializeOwned
    + Debug
    + Clone
    + Default
    + 'static { }
Expand description

Any state that can be used in the router agent must meet the criteria of this trait.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> RouteState for T
where T: Serialize + DeserializeOwned + Debug + Clone + Default + 'static,