pub enum Event {
Show 27 variants
Start,
Connect(ConnectionInfo, Password),
Connected(Account, Jid),
Disconnected(Account, String),
AuthError(Account, String),
Stanza(Account, Element),
RawMessage {
account: Account,
message: Message,
delay: Option<Delay>,
archive: bool,
},
SendMessage(Account, Message),
Message(Option<Account>, Message),
Chat {
account: Account,
contact: BareJid,
},
Join {
account: FullJid,
channel: Jid,
user_request: bool,
},
Joined {
account: FullJid,
channel: FullJid,
user_request: bool,
},
Iq(Account, Iq),
IqResult {
account: Account,
uuid: Uuid,
from: Option<Jid>,
payload: Option<Element>,
},
IqError {
account: Account,
uuid: Uuid,
from: Option<Jid>,
payload: StanzaError,
},
Disco(Account, Vec<String>),
PubSub {
account: Account,
from: Option<Jid>,
event: PubSubEvent,
},
Presence(Account, Presence),
Win(String),
Close(String),
WindowChange,
LoadChannelHistory {
account: Account,
jid: BareJid,
from: Option<DateTime<FixedOffset>>,
},
LoadChatHistory {
account: Account,
contact: BareJid,
from: Option<DateTime<FixedOffset>>,
},
Quit,
ResetCompletion,
ChangeWindow(String),
Subject(Account, Jid, HashMap<String, String>),
}Variants§
Start
Connect(ConnectionInfo, Password)
Connected(Account, Jid)
Disconnected(Account, String)
AuthError(Account, String)
Stanza(Account, Element)
RawMessage
SendMessage(Account, Message)
Message(Option<Account>, Message)
Chat
Join
Joined
Iq(Account, Iq)
IqResult
IqError
Disco(Account, Vec<String>)
PubSub
Presence(Account, Presence)
Win(String)
Close(String)
WindowChange
LoadChannelHistory
LoadChatHistory
Quit
ResetCompletion
ChangeWindow(String)
Subject(Account, Jid, HashMap<String, String>)
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