pub enum X3DHError {
InvalidState,
MessageLenMismatch,
SignatureLenMismatch,
InvalidHash,
}
Expand description
Represents the failures that can occur in an Ockam X3DH kex
Variants
InvalidState
MessageLenMismatch
SignatureLenMismatch
InvalidHash
Implementations
sourceimpl X3DHError
impl X3DHError
sourcepub const DOMAIN_CODE: u32
pub const DOMAIN_CODE: u32
Integer code associated with the error domain.
sourcepub const DOMAIN_NAME: &'static str
pub const DOMAIN_NAME: &'static str
Descriptive name for the error domain.
Trait Implementations
impl Copy for X3DHError
Auto Trait Implementations
impl RefUnwindSafe for X3DHError
impl Send for X3DHError
impl Sync for X3DHError
impl Unpin for X3DHError
impl UnwindSafe for X3DHError
Blanket Implementations
sourceimpl<D> AsyncTryClone for D where
D: Clone + Sync,
impl<D> AsyncTryClone for D where
D: Clone + Sync,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more