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 device 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.
Sourcepub fn has_other_devices_to_verify_against(&self) -> bool
pub fn has_other_devices_to_verify_against(&self) -> bool
Returns true if the user has a device, other than our own, that we could run an interactive verification against.
To be a candidate for verification, the device must be cross-signed by its owner, support Olm (have a Curve25519 key), and not be a dehydrated device.
Unlike UserDevices::is_any_verified, this does not require us to
trust the owner’s identity, only that the owner has signed the device,
so it can be used from a device that has not itself been verified yet.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UserDevices
impl !UnwindSafe for UserDevices
impl Freeze for UserDevices
impl Send for UserDevices
impl Sync for UserDevices
impl Unpin for UserDevices
impl UnsafeUnpin for UserDevices
Blanket Implementations§
impl<T> AsyncTraitDeps for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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> ⓘ
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> ⓘ
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