pub enum SignalProtocolError {
Show 32 variants
InvalidArgument(String),
InvalidState(&'static str, String),
BackendError(&'static str, Box<dyn Error + Send + Sync>),
InvalidProtobufEncoding,
CiphertextMessageTooShort(usize),
LegacyCiphertextVersion(u8),
UnrecognizedCiphertextVersion(u8),
UnrecognizedMessageVersion(u32),
FingerprintVersionMismatch(u32, u32),
FingerprintParsingError,
NoKeyTypeIdentifier,
BadKeyType(u8),
BadKeyLength(KeyType, usize),
SignatureValidationFailed,
KeyAgreementFailed(CryptoProviderError),
UntrustedIdentity(ProtocolAddress),
InvalidPreKeyId,
InvalidSignedPreKeyId,
InvalidMacKeyLength(usize),
NoSenderKeyState(String),
SessionNotFound(ProtocolAddress),
InvalidSessionStructure(&'static str),
InvalidSenderKeySession,
InvalidRegistrationId(ProtocolAddress, u32),
DuplicatedMessage(u32, u32),
InvalidMessage(CiphertextMessageType, &'static str),
BadMac(CiphertextMessageType),
FfiBindingError(String),
ApplicationCallbackError(&'static str, Box<dyn Error + Send + Sync + UnwindSafe + 'static>),
InvalidSealedSenderMessage(String),
UnknownSealedSenderVersion(u8),
SealedSenderSelfSend,
}Variants§
InvalidArgument(String)
InvalidState(&'static str, String)
BackendError(&'static str, Box<dyn Error + Send + Sync>)
InvalidProtobufEncoding
CiphertextMessageTooShort(usize)
LegacyCiphertextVersion(u8)
UnrecognizedCiphertextVersion(u8)
UnrecognizedMessageVersion(u32)
FingerprintVersionMismatch(u32, u32)
FingerprintParsingError
NoKeyTypeIdentifier
BadKeyType(u8)
BadKeyLength(KeyType, usize)
SignatureValidationFailed
KeyAgreementFailed(CryptoProviderError)
UntrustedIdentity(ProtocolAddress)
InvalidPreKeyId
InvalidSignedPreKeyId
InvalidMacKeyLength(usize)
NoSenderKeyState(String)
SessionNotFound(ProtocolAddress)
InvalidSessionStructure(&'static str)
InvalidSenderKeySession
InvalidRegistrationId(ProtocolAddress, u32)
DuplicatedMessage(u32, u32)
InvalidMessage(CiphertextMessageType, &'static str)
BadMac(CiphertextMessageType)
FfiBindingError(String)
ApplicationCallbackError(&'static str, Box<dyn Error + Send + Sync + UnwindSafe + 'static>)
InvalidSealedSenderMessage(String)
UnknownSealedSenderVersion(u8)
SealedSenderSelfSend
Trait Implementations§
Source§impl Debug for SignalProtocolError
impl Debug for SignalProtocolError
Source§impl Display for SignalProtocolError
impl Display for SignalProtocolError
Source§impl Error for SignalProtocolError
impl Error for SignalProtocolError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CurveError> for SignalProtocolError
impl From<CurveError> for SignalProtocolError
Source§fn from(e: CurveError) -> Self
fn from(e: CurveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SignalProtocolError
impl !UnwindSafe for SignalProtocolError
impl Freeze for SignalProtocolError
impl Send for SignalProtocolError
impl Sync for SignalProtocolError
impl Unpin for SignalProtocolError
impl UnsafeUnpin for SignalProtocolError
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