Enum libp2p::noise::NoiseError [−][src]
#[non_exhaustive] pub enum NoiseError { Io(Error), Noise(Error), 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)
An I/O error has been encountered.
An noise framework error has been encountered.
A public key is invalid.
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
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
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V