Enum ockam_key_exchange_xx::XXError
source · [−]pub enum XXError {
InvalidState,
InternalVaultError,
MessageLenMismatch,
}
Expand description
Represents the failures that can occur in an Ockam XX Key Agreement
Variants
InvalidState
The key exchange protocol is in an invalid state.
InternalVaultError
An internal Vault error has occurred.
MessageLenMismatch
A message had an unexpected length.
Implementations
sourceimpl XXError
impl XXError
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 XXError
Auto Trait Implementations
impl RefUnwindSafe for XXError
impl Send for XXError
impl Sync for XXError
impl Unpin for XXError
impl UnwindSafe for XXError
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