Skip to main content

DecryptedAction

Enum DecryptedAction 

Source
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.

Fields

§layer: i32

Highest layer the sender supports.

§

RequestKey

Starts a key re-exchange.

Fields

§exchange_id: i64

Identifier of this exchange.

§g_a: Vec<u8>

Sender’s DH public value g_a.

§

AcceptKey

Accepts a key re-exchange.

Fields

§exchange_id: i64

Identifier of this exchange.

§g_b: Vec<u8>

Sender’s DH public value g_b.

§key_fingerprint: i64

Fingerprint of the key that results from the exchange.

§

AbortKey

Aborts a key re-exchange.

Fields

§exchange_id: i64

Identifier of the aborted exchange.

§

CommitKey

Commits to the new key after a successful re-exchange.

Fields

§exchange_id: i64

Identifier of this exchange.

§key_fingerprint: i64

Fingerprint of the new key.

§

Noop

Does nothing; used to acknowledge sequence numbers.

§

SetTtl

Sets the self-destruct timer for following messages.

Fields

§ttl_seconds: i32

New TTL in seconds (0 disables it).

§

Resend

Asks the peer to resend messages in a sequence-number range.

Fields

§start_seq_no: i32

First raw sequence number to resend.

§end_seq_no: i32

Last raw sequence number to resend.

§

ReadMessages

The peer read these messages. Parsed only, never sent.

Fields

§random_ids: Vec<i64>

random_ids of the messages that were read.

§

DeleteMessages

The peer deleted these messages. Parsed only, never sent.

Fields

§random_ids: Vec<i64>

random_ids of the deleted messages.

§

ScreenshotMessages

The peer took a screenshot of these messages. Parsed only, never sent.

Fields

§random_ids: Vec<i64>

random_ids of the captured messages.

§

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.

Fields

§action_ctor: u32

Constructor ID of the SendMessageAction the peer reported.

§

Unknown

An action this crate does not know.

Fields

§ctor: u32

Its constructor ID.

Trait Implementations§

Source§

impl Clone for DecryptedAction

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DecryptedAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more