Enum matrix_sdk::encryption::LocalTrust
[−]pub enum LocalTrust {
Verified,
BlackListed,
Ignored,
Unset,
}Available on crate feature
e2e-encryption only.Expand description
The local trust state of a device.
Variants
Verified
The device has been verified and is trusted.
BlackListed
The device been blacklisted from communicating.
Ignored
The trust state of the device is being ignored.
Unset
The trust state is unset.
Trait Implementations
impl Clone for LocalTrust
impl Clone for LocalTrust
fn clone(&self) -> LocalTrust
fn clone(&self) -> LocalTrust
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for LocalTrust
impl Debug for LocalTrust
impl<'de> Deserialize<'de> for LocalTrust
impl<'de> Deserialize<'de> for LocalTrust
fn deserialize<__D>(
__deserializer: __D
) -> Result<LocalTrust, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LocalTrust, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<i64> for LocalTrust
impl From<i64> for LocalTrust
fn from(state: i64) -> LocalTrust
fn from(state: i64) -> LocalTrust
Converts to this type from the input type.
impl PartialEq<LocalTrust> for LocalTrust
impl PartialEq<LocalTrust> for LocalTrust
fn eq(&self, other: &LocalTrust) -> bool
fn eq(&self, other: &LocalTrust) -> bool
impl Serialize for LocalTrust
impl Serialize for LocalTrust
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for LocalTrust
impl Eq for LocalTrust
impl StructuralEq for LocalTrust
impl StructuralPartialEq for LocalTrust
Auto Trait Implementations
impl RefUnwindSafe for LocalTrust
impl Send for LocalTrust
impl Sync for LocalTrust
impl Unpin for LocalTrust
impl UnwindSafe for LocalTrust
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.