Enum xxxdh::errors::XxxDhError
source · pub enum XxxDhError {
EmptyPrekeyList,
UnknownPrekey,
KdfError(KdfError),
KeypairError(KeyPairError),
AeadError(AeadError),
SignatureError(SignatureError),
StorageError(StorageError),
}
Expand description
X3DH protocol errors.
Variants§
EmptyPrekeyList
There are no prekeys available. Can’t establish exchange.
UnknownPrekey
Unknown prekey received.
KdfError(KdfError)
Error occurred in the underlying KDF function.
KeypairError(KeyPairError)
Error occurred in the underlying keypair.
AeadError(AeadError)
Error occurred in the underlying AEAD cipher.
SignatureError(SignatureError)
Error occured in the underlying signature.
StorageError(StorageError)
Storge related errors.
Trait Implementations§
source§impl Debug for XxxDhError
impl Debug for XxxDhError
source§impl Display for XxxDhError
impl Display for XxxDhError
source§impl Error for XxxDhError
impl Error for XxxDhError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AeadError> for XxxDhError
impl From<AeadError> for XxxDhError
source§impl From<KdfError> for XxxDhError
impl From<KdfError> for XxxDhError
source§impl From<SignatureError> for XxxDhError
impl From<SignatureError> for XxxDhError
source§fn from(e: SignatureError) -> Self
fn from(e: SignatureError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for XxxDhError
impl From<StorageError> for XxxDhError
source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for XxxDhError
impl Send for XxxDhError
impl Sync for XxxDhError
impl Unpin for XxxDhError
impl UnwindSafe for XxxDhError
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