pub enum SigTrust {
Trusted,
Unverified,
Invalid,
}
Expand description
Signature trust level of an incoming Message
The three variants encode trusted
, unverified
and invalid
,
according to signature verification of the internal keystore.
The SigTrust::ok
convenience function can be used to reject
non-verifiable (unknown or bad) Message
signatures.
Variants§
Trusted
A verified signature by a known contact
Unverified
An unverified signature by a known contact (pubkey not available!)
Invalid
A fraudulent signature
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SigTrust
impl<'de> Deserialize<'de> for SigTrust
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SigTrust, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SigTrust, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SigTrust
impl Serialize for SigTrust
Source§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 Eq for SigTrust
impl StructuralPartialEq for SigTrust
Auto Trait Implementations§
impl Freeze for SigTrust
impl RefUnwindSafe for SigTrust
impl Send for SigTrust
impl Sync for SigTrust
impl Unpin for SigTrust
impl UnwindSafe for SigTrust
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