pub enum AppEvent {
Show 14 variants
RoomDiscovered(DiscoveredRoom),
RoomLost {
room_id: String,
},
RoomJoined {
room_id: String,
},
RoomLeft {
room_id: String,
},
MemberJoined {
room_id: String,
fingerprint: String,
},
MemberLeft {
room_id: String,
fingerprint: String,
},
MessageReceived {
room_id: String,
sender_fingerprint: String,
body: String,
sent_at: i64,
},
MessageSent {
room_id: String,
body: String,
message_id: i64,
},
ListeningOn {
address: String,
},
PeerDiscovered {
peer_id: PeerId,
},
Dialing {
address: String,
},
DialSucceeded {
address: String,
peer_id: PeerId,
},
DialFailed {
address: String,
error: String,
},
Error {
description: String,
},
}Variants§
RoomDiscovered(DiscoveredRoom)
A room was discovered (announced on the global topic).
RoomLost
A previously-discovered room hasn’t been re-announced — TTL expired.
RoomJoined
We successfully joined a room (subscribed to its topic).
RoomLeft
We left a room.
MemberJoined
A new member appeared in a room we’re in.
MemberLeft
A member left a room we’re in.
MessageReceived
A message arrived in a room.
MessageSent
Our own message was sent successfully.
ListeningOn
Listening on a network address.
PeerDiscovered
A peer was discovered on the LAN.
Dialing
We’ve fired a dial command — useful for the UI to show “dialing…”.
DialSucceeded
A user-initiated dial completed successfully.
DialFailed
A user-initiated dial failed.
Error
Non-fatal error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppEvent
impl RefUnwindSafe for AppEvent
impl Send for AppEvent
impl Sync for AppEvent
impl Unpin for AppEvent
impl UnsafeUnpin for AppEvent
impl UnwindSafe for AppEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more