Struct matrix_sdk_crypto::EncryptionSyncChanges
source · pub struct EncryptionSyncChanges<'a> {
pub to_device_events: Vec<Raw<AnyToDeviceEvent>>,
pub changed_devices: &'a DeviceLists,
pub one_time_keys_counts: &'a BTreeMap<OneTimeKeyAlgorithm, UInt>,
pub unused_fallback_keys: Option<&'a [OneTimeKeyAlgorithm]>,
pub next_batch_token: Option<String>,
}
Expand description
Data contained from a sync response and that needs to be processed by the OlmMachine.
Fields§
§to_device_events: Vec<Raw<AnyToDeviceEvent>>
The list of to-device events received in the sync.
changed_devices: &'a DeviceLists
The mapping of changed and left devices, per user, as returned in the sync response.
one_time_keys_counts: &'a BTreeMap<OneTimeKeyAlgorithm, UInt>
The number of one time keys, as returned in the sync response.
unused_fallback_keys: Option<&'a [OneTimeKeyAlgorithm]>
An optional list of fallback keys.
next_batch_token: Option<String>
A next-batch token obtained from a to-device sync query.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EncryptionSyncChanges<'a>
impl<'a> RefUnwindSafe for EncryptionSyncChanges<'a>
impl<'a> Send for EncryptionSyncChanges<'a>
impl<'a> Sync for EncryptionSyncChanges<'a>
impl<'a> Unpin for EncryptionSyncChanges<'a>
impl<'a> UnwindSafe for EncryptionSyncChanges<'a>
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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