Enum libp2p_noise::NoiseError
source · [−]pub enum NoiseError {
Io(Error),
Noise(SnowError),
InvalidKey,
AuthenticationFailed,
InvalidPayload(DecodeError),
SigningError(SigningError),
// some variants omitted
}
Expand description
libp2p_noise error type.
Variants
Io(Error)
An I/O error has been encountered.
Noise(SnowError)
An noise framework error has been encountered.
InvalidKey
A public key is invalid.
AuthenticationFailed
Authentication in a NoiseAuthenticated
upgrade failed.
InvalidPayload(DecodeError)
A handshake payload is invalid.
SigningError(SigningError)
A signature was required and could not be created.
Trait Implementations
sourceimpl Debug for NoiseError
impl Debug for NoiseError
sourceimpl Display for NoiseError
impl Display for NoiseError
sourceimpl Error for NoiseError
impl Error for NoiseError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DecodeError> for NoiseError
impl From<DecodeError> for NoiseError
sourcefn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Performs the conversion.
sourceimpl From<SigningError> for NoiseError
impl From<SigningError> for NoiseError
sourcefn from(e: SigningError) -> Self
fn from(e: SigningError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for NoiseError
impl Send for NoiseError
impl Sync for NoiseError
impl Unpin for NoiseError
impl !UnwindSafe for NoiseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more