pub enum ScramError {
InvalidServerProof(String),
InvalidServerMessage(String),
Utf8Error(String),
Base64Error(String),
}Expand description
SCRAM authentication error types
Variants§
InvalidServerProof(String)
Invalid proof from server
InvalidServerMessage(String)
Invalid server message format
Utf8Error(String)
UTF-8 encoding/decoding error
Base64Error(String)
Base64 decoding error
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScramError
impl Debug for ScramError
Source§impl Display for ScramError
impl Display for ScramError
Source§impl Error for ScramError
impl Error for ScramError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ScramError> for AuthError
impl From<ScramError> for AuthError
Source§fn from(e: ScramError) -> Self
fn from(e: ScramError) -> Self
Converts to this type from the input type.
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