Enum libp2p_noise::NoiseError [−][src]
#[non_exhaustive] pub enum NoiseError { Io(Error), Noise(SnowError), InvalidKey, AuthenticationFailed, InvalidPayload(DecodeError), SigningError(SigningError), }
Expand description
libp2p_noise error type.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Expand description
An I/O error has been encountered.
Noise(SnowError)
Expand description
An noise framework error has been encountered.
Expand description
A public key is invalid.
Expand description
Authentication in a NoiseAuthenticated
upgrade failed.
InvalidPayload(DecodeError)
Expand description
A handshake payload is invalid.
SigningError(SigningError)
Expand description
A signature was required and could not be created.
Trait Implementations
impl Debug for NoiseError
[src]
impl Debug for NoiseError
[src]impl Display for NoiseError
[src]
impl Display for NoiseError
[src]impl Error for NoiseError
[src]
impl Error for NoiseError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<DecodeError> for NoiseError
[src]
impl From<DecodeError> for NoiseError
[src]fn from(e: DecodeError) -> Self
[src]
fn from(e: DecodeError) -> Self
[src]Performs the conversion.
impl From<SigningError> for NoiseError
[src]
impl From<SigningError> for NoiseError
[src]fn from(e: SigningError) -> Self
[src]
fn from(e: SigningError) -> Self
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,