pub enum KnownProblems {
Show 23 variants
ProtocolError,
TrustlError,
CryptoTrusError,
XferError,
DidError,
MsgError,
MeErro,
MeResError,
ReqError,
ReqTimeError,
LegalError,
ProtocolWarning,
TrustWarning,
CryptoTrustWarning,
XferWarning,
DidWarning,
MsgWarning,
MeWarning,
MeResWarning,
ReqWarning,
ReqTimeWarning,
LegalWarning,
Unknown,
}Expand description
Values defined in spec: https://identity.foundation/didcomm-messaging/spec/#problem-codes
Except KnownProblems::Unknow, which is default and should be used as little as possible
Variants§
ProtocolError
TrustlError
CryptoTrusError
XferError
DidError
MsgError
MeErro
MeResError
ReqError
ReqTimeError
LegalError
ProtocolWarning
TrustWarning
CryptoTrustWarning
XferWarning
DidWarning
MsgWarning
MeWarning
MeResWarning
ReqWarning
ReqTimeWarning
LegalWarning
Unknown
Error - Unknown - No data
Trait Implementations§
Source§impl Clone for KnownProblems
impl Clone for KnownProblems
Source§fn clone(&self) -> KnownProblems
fn clone(&self) -> KnownProblems
Returns a duplicate 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 moreSource§impl Debug for KnownProblems
impl Debug for KnownProblems
Source§impl Default for KnownProblems
impl Default for KnownProblems
Source§impl<'de> Deserialize<'de> for KnownProblems
impl<'de> Deserialize<'de> for KnownProblems
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for KnownProblems
impl Serialize for KnownProblems
Source§impl ToString for KnownProblems
impl ToString for KnownProblems
impl Copy for KnownProblems
Auto Trait Implementations§
impl Freeze for KnownProblems
impl RefUnwindSafe for KnownProblems
impl Send for KnownProblems
impl Sync for KnownProblems
impl Unpin for KnownProblems
impl UnsafeUnpin for KnownProblems
impl UnwindSafe for KnownProblems
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