[][src]Enum tokio_xmpp::Event

pub enum Event {
    Online,
    Disconnected,
    Stanza(Element),
}

High-level event on the Stream implemented by Client and Component

Variants

Stream is connected and initialized

Stream end

Received stanza/nonza

Methods

impl Event
[src]

Online event?

Stanza event?

If this is a Stanza event, get its data

If this is a Stanza event, unwrap into its data

Trait Implementations

impl Debug for Event
[src]

Auto Trait Implementations

impl !Send for Event

impl !Sync for Event

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

impl<T> Same for T

Should always be Self