[−][src]Struct yew_router::RouterAgent
The RouterAgent worker holds on to the RouterService singleton and mediates access to it.
Trait Implementations
impl<T> Agent for RouterAgent<T> where
T: JsSerialize + Clone + Debug + TryFrom<Value> + Default + Serialize + Deserialize<'de> + 'static,
[src]
T: JsSerialize + Clone + Debug + TryFrom<Value> + Default + Serialize + Deserialize<'de> + 'static,
type Input = Request<T>
Incoming message type.
type Message = Message<T>
Type of an input messagae.
type Output = Route<T>
Outgoing message type.
type Reach = Context
Reach capaility of the agent.
fn create(link: AgentLink<Self>) -> Self
[src]
fn update(&mut self, msg: Self::Message)
[src]
fn handle(&mut self, msg: Self::Input, who: HandlerId)
[src]
fn connected(&mut self, id: HandlerId)
[src]
Add a client to the pool of connections of this agent
fn disconnected(&mut self, id: HandlerId)
[src]
Remove a client from the pool of connections of this agent
fn destroy(&mut self)
[src]
Creates an instance of an agent.
fn name_of_resource() -> &'static str
[src]
Represents the name of loading resorce for remote workers which have to live in a separate files. Read more
Auto Trait Implementations
impl<T> !Send for RouterAgent<T>
impl<T> Unpin for RouterAgent<T> where
T: Unpin,
T: Unpin,
impl<T> !Sync for RouterAgent<T>
impl<T> !UnwindSafe for RouterAgent<T>
impl<T> !RefUnwindSafe for RouterAgent<T>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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> Any for T where
T: Any,
T: Any,