[−][src]Struct yew_router::agent::RouteAgent
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<T: for<'de> AgentState<'de>> Debug for RouteAgent<T>
[src]
impl<T> Agent for RouteAgent<T> where
T: AgentState<'de>,
[src]
T: AgentState<'de>,
type Input = RouteRequest<T>
Incoming message type.
type Message = Msg<T>
Type of an input message.
type Output = Route<T>
Outgoing message type.
type Reach = Context
Reach capability of the agent.
fn create(link: AgentLink<RouteAgent<T>>) -> Self
[src]
fn update(&mut self, msg: Self::Message)
[src]
fn connected(&mut self, id: HandlerId)
[src]
fn handle(&mut self, msg: Self::Input, who: HandlerId)
[src]
fn disconnected(&mut self, id: HandlerId)
[src]
fn destroy(&mut self)
[src]
fn name_of_resource() -> &'static str
[src]
Auto Trait Implementations
impl<T> !Send for RouteAgent<T>
impl<T> !Sync for RouteAgent<T>
impl<T> Unpin for RouteAgent<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for RouteAgent<T>
impl<T> !RefUnwindSafe for RouteAgent<T>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Bridged for T where
T: Agent,
[src]
T: Agent,
impl<T> Dispatched for T where
T: Agent,
<T as Agent>::Reach: Dispatchable,
[src]
T: Agent,
<T as Agent>::Reach: Dispatchable,
fn dispatcher() -> Dispatcher<T>
[src]
impl<T> Any for T where
T: Any,
T: Any,