pub enum Event {
Online {
bound_jid: Jid,
features: StreamFeatures,
resumed: bool,
},
Disconnected(Error),
Stanza(Stanza),
}Expand description
High-level event on the Stream implemented by Client and Component
Variants§
Online
Stream is connected and initialized
Fields
§
bound_jid: JidServer-set Jabber-Id for your session
This may turn out to be a different JID resource than expected, so use this one instead of the JID with which the connection was setup.
§
features: StreamFeaturesFeatures supported by the server
Disconnected(Error)
Stream end
Stanza(Stanza)
Received stanza/nonza
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more