pub enum Event {
Show 39 variants
Ready {
user: User,
chats: Vec<ChatSummary>,
},
ProfilesLoaded(Vec<Profile>),
ProfileActivated {
user: User,
chats: Vec<ChatSummary>,
},
ProfileCreated {
user: User,
profiles: Vec<Profile>,
chats: Vec<ChatSummary>,
},
ProfileDeleted {
profiles: Vec<Profile>,
active_user: Option<User>,
chats: Vec<ChatSummary>,
},
ProfileDeleteFailed(String),
SettingChanged(String),
AutoDeleteLoaded(i64),
AutoDeleteChanged(i64),
AutoDeleteFailed(String),
ChatDeletionLoaded {
chat_ref: ChatRef,
settings: ChatDeletionSettings,
},
ChatDeletionChanged {
chat_ref: ChatRef,
settings: ChatDeletionSettings,
},
ChatDeletionFailed(String),
ConversationFeaturesLoaded {
chat_ref: ChatRef,
features: ChatFeatures,
},
ConversationFeaturesChanged {
chat_ref: ChatRef,
features: ChatFeatures,
},
ConversationFeaturesFailed(String),
ChatDeleted {
chat_ref: ChatRef,
chats: Vec<ChatSummary>,
},
ChatDeleteFailed(String),
FileDownloadStarted {
file_id: i64,
path: String,
},
FileDownloadFailed {
file_id: i64,
error: String,
},
FileDownloadCancelled {
file_id: i64,
},
FileUpdated {
chat_ref: ChatRef,
message: Message,
},
ServersLoaded(Vec<ServerEntry>),
ServersUpdateFailed(String),
ChatFeaturesLoaded(ChatFeatures),
InvitationCreated(String),
InvitationFailed(String),
ConnectionStarted,
ConnectionFailed(String),
ChatLoaded {
chat_ref: ChatRef,
messages: Vec<Message>,
},
ChatMarkedRead(ChatRef),
ContactConnected {
chats: Vec<ChatSummary>,
chat_ref: ChatRef,
},
MessageReceived {
chat_ref: ChatRef,
message: Message,
},
ChatLoadFailed {
chat_ref: ChatRef,
error: String,
},
MessageSent {
chat_ref: ChatRef,
text: String,
},
MessageSendFailed {
chat_ref: ChatRef,
error: String,
},
ReactionChanged {
chat_ref: ChatRef,
item_id: i64,
emoji: String,
added: bool,
user_reacted: bool,
},
NoActiveUser,
Failed(String),
}Variants§
Ready
ProfilesLoaded(Vec<Profile>)
ProfileActivated
ProfileCreated
ProfileDeleted
ProfileDeleteFailed(String)
SettingChanged(String)
AutoDeleteLoaded(i64)
AutoDeleteChanged(i64)
AutoDeleteFailed(String)
ChatDeletionLoaded
ChatDeletionChanged
ChatDeletionFailed(String)
ConversationFeaturesLoaded
ConversationFeaturesChanged
ConversationFeaturesFailed(String)
ChatDeleted
ChatDeleteFailed(String)
FileDownloadStarted
FileDownloadFailed
FileDownloadCancelled
FileUpdated
ServersLoaded(Vec<ServerEntry>)
ServersUpdateFailed(String)
ChatFeaturesLoaded(ChatFeatures)
InvitationCreated(String)
InvitationFailed(String)
ConnectionStarted
ConnectionFailed(String)
ChatLoaded
ChatMarkedRead(ChatRef)
ContactConnected
MessageReceived
ChatLoadFailed
MessageSent
MessageSendFailed
ReactionChanged
NoActiveUser
Failed(String)
Trait Implementations§
Source§impl Clone for SimplexEvent
impl Clone for SimplexEvent
Auto Trait Implementations§
impl Freeze for SimplexEvent
impl RefUnwindSafe for SimplexEvent
impl Send for SimplexEvent
impl Sync for SimplexEvent
impl Unpin for SimplexEvent
impl UnsafeUnpin for SimplexEvent
impl UnwindSafe for SimplexEvent
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