Struct matrix_sdk_crypto::store::caches::DeviceStore [−][src]
pub struct DeviceStore { /* fields omitted */ }Expand description
In-memory store holding the devices of users.
Implementations
Add a device to the store.
Returns true if the device was already in the store, false otherwise.
Get the device with the given device_id and belonging to the given user.
Remove the device with the given device_id and belonging to the given user.
Returns the device if it was removed, None if it wasn’t in the store.
Get a read-only view over all devices of the given user.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DeviceStore
impl Send for DeviceStore
impl Sync for DeviceStore
impl Unpin for DeviceStore
impl !UnwindSafe for DeviceStore
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more