[][src]Struct yew_router::prelude::RouteAgentBridge

pub struct RouteAgentBridge<STATE = ()>(_)
where
    STATE: RouteState
;

A wrapped bridge to the route agent.

A component that owns this can send and receive messages from the agent.

Implementations

impl<STATE> RouteAgentBridge<STATE> where
    STATE: RouteState
[src]

pub fn new(callback: Callback<Route<STATE>>) -> Self[src]

Creates a new bridge.

pub fn spawn(callback: Callback<Route<STATE>>) -> Self[src]

Experimental, may be removed

Directly spawn a new Router

Methods from Deref<Target = Box<dyn Bridge<RouteAgent<STATE>>>>

Trait Implementations

impl<STATE: RouteState> Debug for RouteAgentBridge<STATE>[src]

impl<STATE: RouteState> Deref for RouteAgentBridge<STATE>[src]

type Target = Box<dyn Bridge<RouteAgent<STATE>>>

The resulting type after dereferencing.

impl<STATE: RouteState> DerefMut for RouteAgentBridge<STATE>[src]

Auto Trait Implementations

impl<STATE = ()> !RefUnwindSafe for RouteAgentBridge<STATE>

impl<STATE = ()> !Send for RouteAgentBridge<STATE>

impl<STATE = ()> !Sync for RouteAgentBridge<STATE>

impl<STATE> Unpin for RouteAgentBridge<STATE>

impl<STATE = ()> !UnwindSafe for RouteAgentBridge<STATE>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.