pub enum Verified {
All,
Signatures,
}
Available on crate feature
signatures
only.Expand description
A value returned when an event is successfully verified.
Event verification involves verifying both signatures and a content hash. It is possible for the signatures on an event to be valid, but for the hash to be different than the one calculated during verification. This is not necessarily an error condition, as it may indicate that the event has been redacted. In this case, receiving homeservers should store a redacted version of the event.
Variants§
All
All signatures are valid and the content hashes match.
Signatures
All signatures are valid but the content hashes don’t match.
This may indicate a redacted event.
Trait Implementations§
impl Eq for Verified
impl StructuralPartialEq for Verified
Auto Trait Implementations§
impl Freeze for Verified
impl RefUnwindSafe for Verified
impl Send for Verified
impl Sync for Verified
impl Unpin for Verified
impl UnwindSafe for Verified
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,
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
Compare self to
key
and return true
if they are equal.