pub struct UnableToDecryptInfo {
pub event_id: OwnedEventId,
pub time_to_decrypt: Option<Duration>,
pub cause: UtdCause,
pub event_local_age_millis: i64,
pub user_trusts_own_identity: bool,
pub sender_homeserver: OwnedServerName,
pub own_homeserver: Option<OwnedServerName>,
}
Expand description
Information about an event we were unable to decrypt (UTD).
Fields§
§event_id: OwnedEventId
The identifier of the event that couldn’t get decrypted.
time_to_decrypt: Option<Duration>
If the event could be decrypted late (that is, the event was encrypted at first, but could be decrypted later on), then this indicates the time it took to decrypt the event. If it is not set, this is considered a definite UTD.
cause: UtdCause
What we know about what caused this UTD. E.g. was this event sent when we were not a member of this room?
event_local_age_millis: i64
The difference between the event creation time (origin_server_ts
) and
the time our device was created. If negative, this event was sent
before our device was created.
user_trusts_own_identity: bool
Whether the user had verified their own identity at the point they received the UTD event.
sender_homeserver: OwnedServerName
The homeserver of the user that sent the undecryptable event.
own_homeserver: Option<OwnedServerName>
Our local user’s own homeserver, or None
if the client is not logged
in.
Trait Implementations§
Source§impl Clone for UnableToDecryptInfo
impl Clone for UnableToDecryptInfo
Source§fn clone(&self) -> UnableToDecryptInfo
fn clone(&self) -> UnableToDecryptInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UnableToDecryptInfo
impl Debug for UnableToDecryptInfo
Source§impl Hash for UnableToDecryptInfo
impl Hash for UnableToDecryptInfo
Source§impl PartialEq for UnableToDecryptInfo
impl PartialEq for UnableToDecryptInfo
impl Eq for UnableToDecryptInfo
impl StructuralPartialEq for UnableToDecryptInfo
Auto Trait Implementations§
impl Freeze for UnableToDecryptInfo
impl RefUnwindSafe for UnableToDecryptInfo
impl Send for UnableToDecryptInfo
impl Sync for UnableToDecryptInfo
impl Unpin for UnableToDecryptInfo
impl UnwindSafe for UnableToDecryptInfo
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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