pub enum InitStage {
ValidateKeyLengths,
ValidatePskLengths,
ValidateCipherTypes,
GetRngImpl,
GetDhImpl,
GetCipherImpl,
GetHashImpl,
ValidatePskPosition,
ParameterOverwrite,
}Expand description
The various stages of initialization used to help identify
the specific cause of an Init error.
Variants§
ValidateKeyLengths
Provided and received key lengths were not equal.
ValidatePskLengths
Provided and received preshared key lengths were not equal.
ValidateCipherTypes
Two separate cipher algorithms were initialized.
GetRngImpl
The RNG couldn’t be initialized.
GetDhImpl
The DH implementation couldn’t be initialized.
GetCipherImpl
The cipher implementation couldn’t be initialized.
GetHashImpl
The hash implementation couldn’t be initialized.
ValidatePskPosition
The PSK position (specified in the pattern string) isn’t valid for the given handshake type.
ParameterOverwrite
The Builder already has set a value for this parameter, and overwrites are not allowed as they can introduce subtle security issues.
Trait Implementations§
impl StructuralPartialEq for InitStage
Auto Trait Implementations§
impl Freeze for InitStage
impl RefUnwindSafe for InitStage
impl Send for InitStage
impl Sync for InitStage
impl Unpin for InitStage
impl UnsafeUnpin for InitStage
impl UnwindSafe for InitStage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more