Enum libp2p::noise::NoiseError
source · [−]pub enum NoiseError {
Io(Error),
Noise(Error),
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(Error)
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
sourcepub fn source(&self) -> Option<&(dyn Error + 'static)>
pub 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
sourcepub fn from(e: DecodeError) -> NoiseError
pub fn from(e: DecodeError) -> NoiseError
Performs the conversion.
sourceimpl From<Error> for NoiseError
impl From<Error> for NoiseError
sourcepub fn from(e: Error) -> NoiseError
pub fn from(e: Error) -> NoiseError
Performs the conversion.
sourceimpl From<Error> for NoiseError
impl From<Error> for NoiseError
sourcepub fn from(e: Error) -> NoiseError
pub fn from(e: Error) -> NoiseError
Performs the conversion.
sourceimpl From<SigningError> for NoiseError
impl From<SigningError> for NoiseError
sourcepub fn from(e: SigningError) -> NoiseError
pub fn from(e: SigningError) -> NoiseError
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