Enum noise::error::EncryptionError
source · pub enum EncryptionError {
ExceedingMaxLength(usize),
Ecdh(EcdhError),
InvalidPk(EcPkInvalid),
InvalidSk(EcSkInvalid),
ChaCha(Error),
}
Variants§
ExceedingMaxLength(usize)
message length {0} exceeds maximum size allowed for the encryption protocol frame.
Ecdh(EcdhError)
invalid keys for ECDH: {0}
InvalidPk(EcPkInvalid)
invalid remote public key
InvalidSk(EcSkInvalid)
invalid local secret key
ChaCha(Error)
ChaCha20Poly1305 AEAD encryptor error.
Trait Implementations§
source§impl Clone for EncryptionError
impl Clone for EncryptionError
source§fn clone(&self) -> EncryptionError
fn clone(&self) -> EncryptionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EncryptionError
impl Debug for EncryptionError
source§impl Display for EncryptionError
impl Display for EncryptionError
source§impl Error for EncryptionError
impl Error for EncryptionError
1.30.0 · 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<EcPkInvalid> for EncryptionError
impl From<EcPkInvalid> for EncryptionError
source§fn from(v: EcPkInvalid) -> Self
fn from(v: EcPkInvalid) -> Self
Converts to this type from the input type.
source§impl From<EcSkInvalid> for EncryptionError
impl From<EcSkInvalid> for EncryptionError
source§fn from(v: EcSkInvalid) -> Self
fn from(v: EcSkInvalid) -> Self
Converts to this type from the input type.
source§impl From<EcdhError> for EncryptionError
impl From<EcdhError> for EncryptionError
source§impl From<EncryptionError> for HandshakeError
impl From<EncryptionError> for HandshakeError
source§fn from(v: EncryptionError) -> Self
fn from(v: EncryptionError) -> Self
Converts to this type from the input type.
source§impl From<EncryptionError> for NoiseError
impl From<EncryptionError> for NoiseError
source§fn from(v: EncryptionError) -> Self
fn from(v: EncryptionError) -> Self
Converts to this type from the input type.
source§impl From<EncryptionError> for String
impl From<EncryptionError> for String
source§fn from(err: EncryptionError) -> Self
fn from(err: EncryptionError) -> Self
Converts to this type from the input type.
source§impl From<Error> for EncryptionError
impl From<Error> for EncryptionError
source§impl PartialEq for EncryptionError
impl PartialEq for EncryptionError
source§fn eq(&self, other: &EncryptionError) -> bool
fn eq(&self, other: &EncryptionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EncryptionError
impl StructuralPartialEq for EncryptionError
Auto Trait Implementations§
impl Freeze for EncryptionError
impl RefUnwindSafe for EncryptionError
impl Send for EncryptionError
impl Sync for EncryptionError
impl Unpin for EncryptionError
impl UnwindSafe for EncryptionError
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