[][src]Struct yew_router::agent::RouteAgent

pub struct RouteAgent<STATE = ()> where
    STATE: RouteState
{ /* fields omitted */ }

The RouteAgent holds on to the RouteService singleton and mediates access to it.

It serves as a means to propagate messages to components interested in the state of the current route.

Warning

All routing-related components/agents/services should use the same type parameter across your application.

If you use multiple agents with different types, then the Agents won't be able to communicate to each other and associated components may not work as intended.

Trait Implementations

impl<STATE> Agent for RouteAgent<STATE> where
    STATE: RouteState
[src]

type Input = RouteRequest<STATE>

Incoming message type.

type Message = Msg<STATE>

Type of an input message.

type Output = Route<STATE>

Outgoing message type.

type Reach = Context<Self>

Reach capability of the agent.

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

Auto Trait Implementations

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

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

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

impl<STATE> Unpin for RouteAgent<STATE> where
    STATE: Unpin

impl<STATE = ()> !UnwindSafe for RouteAgent<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> Bridged for T where
    T: Agent,
    <T as Agent>::Reach: Discoverer,
    <<T as Agent>::Reach as Discoverer>::Agent == T, 
[src]

impl<T> Dispatched for T where
    T: Agent,
    <T as Agent>::Reach: Discoverer,
    <T as Agent>::Reach: Dispatchable,
    <<T as Agent>::Reach as Discoverer>::Agent == T, 
[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.