pub enum ValidateSecretError {
InvalidSecret,
InvalidSecretLength,
Unknown,
}Expand description
A Diffie-Hellman secret value was found to be invalid.
Variants§
InvalidSecret
Secret value was invalid
InvalidSecretLength
The provided secret value buffer has the wrong length
Unknown
An unknown error occurred
Trait Implementations§
Source§impl Debug for ValidateSecretError
impl Debug for ValidateSecretError
Source§impl Display for ValidateSecretError
impl Display for ValidateSecretError
Source§impl From<ValidateSecretError> for ValidateSecretError
impl From<ValidateSecretError> for ValidateSecretError
Source§fn from(value: ValidateSecretError) -> Self
fn from(value: ValidateSecretError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidateSecretError
impl RefUnwindSafe for ValidateSecretError
impl Send for ValidateSecretError
impl Sync for ValidateSecretError
impl Unpin for ValidateSecretError
impl UnwindSafe for ValidateSecretError
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