[][src]Enum yew::agent::AgentLifecycleEvent

pub enum AgentLifecycleEvent<AGN: Agent> {
    Create(AgentLink<AGN>),
    Message(AGN::Message),
    Connected(HandlerId),
    Input(AGN::InputHandlerId),
    Disconnected(HandlerId),
    Destroy,
}

Local Agent messages

Variants

Create(AgentLink<AGN>)

Request to create link

Message(AGN::Message)

Internal Agent message

Connected(HandlerId)

Client connected

Input(AGN::InputHandlerId)

Received mesasge from Client

Disconnected(HandlerId)

Client disconnected

Destroy

Request to destroy agent

Trait Implementations

impl<AGN: Debug + Agent> Debug for AgentLifecycleEvent<AGN> where
    AGN::Message: Debug,
    AGN::Input: Debug
[src]

Auto Trait Implementations

impl<AGN> !RefUnwindSafe for AgentLifecycleEvent<AGN>

impl<AGN> !Send for AgentLifecycleEvent<AGN>

impl<AGN> !Sync for AgentLifecycleEvent<AGN>

impl<AGN> Unpin for AgentLifecycleEvent<AGN> where
    <AGN as Agent>::Input: Unpin,
    <AGN as Agent>::Message: Unpin

impl<AGN> !UnwindSafe for AgentLifecycleEvent<AGN>

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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.