[][src]Struct yew_router::RouterAgent

pub struct RouterAgent<T> where
    T: JsSerialize + Clone + Debug + TryFrom<Value> + Default + Serialize + Deserialize<'de> + 'static, 
{ /* fields omitted */ }

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]

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 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

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]

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.

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

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

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

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.

impl<T> Bridged for T where
    T: Agent
[src]

impl<T> Any for T where
    T: Any