pub trait Redirector: 'static {
type Properties: RedirectorProperties;
// Required methods
fn new<COMP: Component>(ctx: &Context<COMP>) -> Self;
fn logout(&self, props: &Self::Properties);
}Required Associated Types§
Required Methods§
fn new<COMP: Component>(ctx: &Context<COMP>) -> Self
fn logout(&self, props: &Self::Properties)
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 Redirector for LocationRedirector
impl Redirector for LocationRedirector
Source§impl<R> Redirector for RouterRedirector<R>where
R: Target + 'static,
Available on crate feature yew-nested-router only.
impl<R> Redirector for RouterRedirector<R>where
R: Target + 'static,
Available on crate feature
yew-nested-router only.