Enum snow::error::Error [−][src]
#[non_exhaustive] pub enum Error { Pattern(PatternProblem), Init(InitStage), Prereq(Prerequisite), State(StateProblem), Input, Dh, Decrypt, }
All errors in snow will include an ErrorKind
.
Variants (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.
Pattern(PatternProblem)
The noise pattern failed to parse.
Init(InitStage)
Initialization failure, at a provided stage.
Prereq(Prerequisite)
Missing prerequisite.
State(StateProblem)
A state error.
Invalid input.
Diffie-hellman failed.
Decryption failed.
Trait Implementations
impl From<PatternProblem> for Error
[src]
impl From<PatternProblem> for Error
[src]fn from(reason: PatternProblem) -> Self
[src]
impl From<Prerequisite> for Error
[src]
impl From<Prerequisite> for Error
[src]fn from(reason: Prerequisite) -> Self
[src]
impl From<StateProblem> for Error
[src]
impl From<StateProblem> for Error
[src]