pub enum NoiseError {
Handshake {
reason: String,
},
Transport {
reason: String,
},
InvalidKey {
reason: String,
},
CryptoOperation {
reason: String,
},
}Expand description
Noise protocol specific errors.
Variants§
Handshake
Noise handshake state error.
Transport
Noise transport state error.
InvalidKey
Invalid noise key format.
CryptoOperation
Noise encryption/decryption failed.
Trait Implementations§
Source§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)>
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 From<Error> for NoiseError
Convert snow errors to NoiseError.
impl From<Error> for NoiseError
Convert snow errors to NoiseError.
Source§impl From<NoiseError> for ClientError
Convert NoiseError to ClientError.
impl From<NoiseError> for ClientError
Convert NoiseError to ClientError.
Source§fn from(err: NoiseError) -> Self
fn from(err: NoiseError) -> Self
Converts to this type from the input type.
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