pub struct CryptoContextInfo {
pub device_creation_ts: MilliSecondsSinceUnixEpoch,
pub this_device_is_verified: bool,
pub backup_exists_on_server: bool,
pub is_backup_configured: bool,
}
Expand description
Contextual crypto information used by UtdCause::determine
to properly
identify an Unable-To-Decrypt cause in addition to the
UnableToDecryptInfo
and raw event info.
Fields§
§device_creation_ts: MilliSecondsSinceUnixEpoch
The current device creation timestamp, used as a heuristic to determine if an event is device-historical or not (sent before the current device existed).
this_device_is_verified: bool
True if this device is secure because it has been verified by us
backup_exists_on_server: bool
True if key storage exists on the server, even if we are unable to use it
is_backup_configured: bool
True if key storage is correctly set up and can be used by the current client to download and decrypt message keys.
Trait Implementations§
Source§impl Clone for CryptoContextInfo
impl Clone for CryptoContextInfo
Source§fn clone(&self) -> CryptoContextInfo
fn clone(&self) -> CryptoContextInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CryptoContextInfo
impl Debug for CryptoContextInfo
impl Copy for CryptoContextInfo
Auto Trait Implementations§
impl Freeze for CryptoContextInfo
impl RefUnwindSafe for CryptoContextInfo
impl Send for CryptoContextInfo
impl Sync for CryptoContextInfo
impl Unpin for CryptoContextInfo
impl UnwindSafe for CryptoContextInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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