#[non_exhaustive]pub enum ScramError {
Malformed,
NonceMismatch,
TooManyIterations,
BadSalt,
ServerProofInvalid,
}Expand description
Why an exchange could not continue.
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.
Malformed
The server’s message was not the shape the specification defines.
NonceMismatch
The server’s nonce does not start with the one we sent, so it is not answering us.
TooManyIterations
The server asked for more iterations than we will run.
BadSalt
The salt was not valid base64.
ServerProofInvalid
The server could not prove it knows the password, so it is not the server it claims.
Trait Implementations§
Source§impl Clone for ScramError
impl Clone for ScramError
Source§fn clone(&self) -> ScramError
fn clone(&self) -> ScramError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScramError
Source§impl Debug for ScramError
impl Debug for ScramError
Source§impl<'de> Deserialize<'de> for ScramError
impl<'de> Deserialize<'de> for ScramError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScramError
Source§impl PartialEq for ScramError
impl PartialEq for ScramError
Source§fn eq(&self, other: &ScramError) -> bool
fn eq(&self, other: &ScramError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScramError
impl Serialize for ScramError
impl StructuralPartialEq for ScramError
Auto Trait Implementations§
impl Freeze for ScramError
impl RefUnwindSafe for ScramError
impl Send for ScramError
impl Sync for ScramError
impl Unpin for ScramError
impl UnsafeUnpin for ScramError
impl UnwindSafe for ScramError
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