#[non_exhaustive]pub enum Error {
IllegalPointError,
PasswordHashing(Error),
HashEmpty,
HashSizeInvalid,
MutualAuthFail,
UsernameOrPasswordTooLong,
InsecureSsid,
}Expand description
Errors that can occur during the protocol
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.
IllegalPointError
Some points such as the Neutral or Identity point are illegal
PasswordHashing(Error)
Wrapper around password_hash’s error type, for propagating errors should they occur
HashEmpty
PasswordHasher produced an empty hash.
HashSizeInvalid
PasswordHasher produced a hash of an invalid size (size was not 32 or 64 bytes)
MutualAuthFail
Failure during Explicit Mutual Authentication
UsernameOrPasswordTooLong
The username:password string would overflow the buffer size allocated for hashing the password Note: this error can only occur when using the *_alloc APIs
InsecureSsid
The SSID provided is too short to be secure, SSIDs must be at least 16 bytes long Note: this error can only occur if the SSID establishment phase is bypassed
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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