Enum noise::error::NoiseError
source · pub enum NoiseError {
PayloadNotEmpty,
HandshakeComplete,
Encryption(EncryptionError),
}
Variants§
PayloadNotEmpty
received a non-empty payload from the remote peer when an empty payload was expected
HandshakeComplete
handshake is complete, no further advance is possible
Encryption(EncryptionError)
Trait Implementations§
source§impl Clone for NoiseError
impl Clone for NoiseError
source§fn clone(&self) -> NoiseError
fn clone(&self) -> NoiseError
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 NoiseError
impl Debug for NoiseError
source§impl Display for NoiseError
impl Display for NoiseError
source§impl Error for NoiseError
impl Error for NoiseError
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<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<NoiseError> for String
impl From<NoiseError> for String
source§fn from(err: NoiseError) -> Self
fn from(err: NoiseError) -> Self
Converts to this type from the input type.
source§impl PartialEq for NoiseError
impl PartialEq for NoiseError
source§fn eq(&self, other: &NoiseError) -> bool
fn eq(&self, other: &NoiseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NoiseError
impl StructuralPartialEq for NoiseError
Auto Trait Implementations§
impl Freeze for NoiseError
impl RefUnwindSafe for NoiseError
impl Send for NoiseError
impl Sync for NoiseError
impl Unpin for NoiseError
impl UnwindSafe for NoiseError
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