Struct matrix_sdk_crypto::UserDevices
source · pub struct UserDevices { /* private fields */ }
Expand description
A read only view over all devices belonging to a user.
Implementations§
source§impl UserDevices
impl UserDevices
sourcepub fn get(&self, device_id: &DeviceId) -> Option<Device>
pub fn get(&self, device_id: &DeviceId) -> Option<Device>
Get the specific device with the given device ID.
sourcepub fn is_any_verified(&self) -> bool
pub fn is_any_verified(&self) -> bool
Returns true if there is at least one devices of this user that is considered to be verified, false otherwise.
This won’t consider your own device as verified, as your own device is always implicitly verified.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserDevices
impl !RefUnwindSafe for UserDevices
impl Send for UserDevices
impl Sync for UserDevices
impl Unpin for UserDevices
impl !UnwindSafe for UserDevices
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