pub enum DecryptedAction {
Show 14 variants
NotifyLayer {
layer: i32,
},
RequestKey {
exchange_id: i64,
g_a: Vec<u8>,
},
AcceptKey {
exchange_id: i64,
g_b: Vec<u8>,
key_fingerprint: i64,
},
AbortKey {
exchange_id: i64,
},
CommitKey {
exchange_id: i64,
key_fingerprint: i64,
},
Noop,
SetTtl {
ttl_seconds: i32,
},
Resend {
start_seq_no: i32,
end_seq_no: i32,
},
ReadMessages {
random_ids: Vec<i64>,
},
DeleteMessages {
random_ids: Vec<i64>,
},
ScreenshotMessages {
random_ids: Vec<i64>,
},
FlushHistory,
Typing {
action_ctor: u32,
},
Unknown {
ctor: u32,
},
}Expand description
A service action carried inside a decryptedMessageService.
Variants§
NotifyLayer
Announces the sender’s supported layer.
RequestKey
Starts a key re-exchange.
AcceptKey
Accepts a key re-exchange.
Fields
AbortKey
Aborts a key re-exchange.
CommitKey
Commits to the new key after a successful re-exchange.
Fields
Noop
Does nothing; used to acknowledge sequence numbers.
SetTtl
Sets the self-destruct timer for following messages.
Resend
Asks the peer to resend messages in a sequence-number range.
Fields
ReadMessages
The peer read these messages. Parsed only, never sent.
DeleteMessages
The peer deleted these messages. Parsed only, never sent.
ScreenshotMessages
The peer took a screenshot of these messages. Parsed only, never sent.
FlushHistory
The peer cleared the chat history. Parsed only, never sent.
Typing
The peer is typing or doing another chat action. Parsed only, never sent.
Unknown
An action this crate does not know.
Trait Implementations§
Source§impl Clone for DecryptedAction
impl Clone for DecryptedAction
Auto Trait Implementations§
impl Forget for DecryptedAction
impl Freeze for DecryptedAction
impl RefUnwindSafe for DecryptedAction
impl Send for DecryptedAction
impl Sync for DecryptedAction
impl Unpin for DecryptedAction
impl UnsafeUnpin for DecryptedAction
impl UnwindSafe for DecryptedAction
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