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)
An I/O error has been encountered.
Noise(SnowError)
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.
Auto Trait Implementations
impl !RefUnwindSafe for NoiseError
impl Send for NoiseError
impl Sync for NoiseError
impl Unpin for NoiseError
impl !UnwindSafe for NoiseError