pub enum Command {
Show 20 variants
LoadChat(ChatRef),
MarkChatRead(ChatRef),
SendMessage {
chat_ref: ChatRef,
text: String,
},
SendReaction {
chat_ref: ChatRef,
item_id: i64,
emoji: String,
},
ReceiveFile {
file_id: i64,
file_name: String,
},
CancelFile {
file_id: i64,
},
ActivateProfile(i64),
CreateProfile(String),
DeleteProfile(i64),
SetAutoDelete {
user_id: i64,
seconds: i64,
},
LoadChatDeletion {
chat_ref: ChatRef,
},
SetChatDeletion {
user_id: i64,
chat_ref: ChatRef,
seconds: Option<i64>,
},
LoadConversationFeatures {
chat_ref: ChatRef,
},
SetConversationFeature {
chat_ref: ChatRef,
feature: ChatFeature,
enabled: bool,
},
DeleteChat {
user_id: i64,
chat_ref: ChatRef,
mode: ChatDeleteMode,
},
CreateInvitation {
user_id: i64,
},
ConnectInvitation {
user_id: i64,
link: String,
},
SetChatFeature {
user_id: i64,
feature: ChatFeature,
enabled: bool,
},
SetServerEnabled {
user_id: i64,
protocol: ServerProtocol,
address: String,
enabled: bool,
},
AddServer {
user_id: i64,
protocol: ServerProtocol,
address: String,
},
}Variants§
LoadChat(ChatRef)
MarkChatRead(ChatRef)
SendMessage
SendReaction
ReceiveFile
CancelFile
ActivateProfile(i64)
CreateProfile(String)
DeleteProfile(i64)
SetAutoDelete
LoadChatDeletion
SetChatDeletion
LoadConversationFeatures
SetConversationFeature
DeleteChat
CreateInvitation
ConnectInvitation
SetChatFeature
SetServerEnabled
AddServer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimplexCommand
impl RefUnwindSafe for SimplexCommand
impl Send for SimplexCommand
impl Sync for SimplexCommand
impl Unpin for SimplexCommand
impl UnsafeUnpin for SimplexCommand
impl UnwindSafe for SimplexCommand
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