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