pub struct EncryptionSyncChanges<'a> {
pub to_device_events: Vec<Raw<AnyToDeviceEvent>>,
pub changed_devices: &'a DeviceLists,
pub one_time_keys_counts: &'a BTreeMap<DeviceKeyAlgorithm, UInt>,
pub unused_fallback_keys: Option<&'a [DeviceKeyAlgorithm]>,
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<DeviceKeyAlgorithm, UInt>
The number of one time keys, as returned in the sync response.
unused_fallback_keys: Option<&'a [DeviceKeyAlgorithm]>
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