pub enum AgreementError {
UnsupportedSuite,
InvalidPrivateKey,
InvalidPublicKey,
}Expand description
Errors from key agreement.
Variants§
UnsupportedSuite
The suite has no elliptic-curve key agreement (suite 0).
InvalidPrivateKey
The private key was malformed for the curve.
InvalidPublicKey
The peer public key was malformed for the curve.
Trait Implementations§
Source§impl Debug for AgreementError
impl Debug for AgreementError
Source§impl Display for AgreementError
impl Display for AgreementError
impl Eq for AgreementError
Source§impl Error for AgreementError
impl Error for AgreementError
1.30.0 · 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 PartialEq for AgreementError
impl PartialEq for AgreementError
impl StructuralPartialEq for AgreementError
Auto Trait Implementations§
impl Freeze for AgreementError
impl RefUnwindSafe for AgreementError
impl Send for AgreementError
impl Sync for AgreementError
impl Unpin for AgreementError
impl UnsafeUnpin for AgreementError
impl UnwindSafe for AgreementError
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