Enum matrix_sdk::encryption::LocalTrust
pub enum LocalTrust {
Verified = 0,
BlackListed = 1,
Ignored = 2,
Unset = 3,
}
Available on crate feature
e2e-encryption
only.Expand description
The local trust state of a device.
Variants§
Verified = 0
The device has been verified and is trusted.
BlackListed = 1
The device been blacklisted from communicating.
Ignored = 2
The trust state of the device is being ignored.
Unset = 3
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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl 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 for LocalTrust
impl PartialEq for LocalTrust
§fn eq(&self, other: &LocalTrust) -> bool
fn eq(&self, other: &LocalTrust) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§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§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.