#[non_exhaustive]pub enum PasswordError {
InvalidCharacter,
InvalidPercentEncoding,
}Expand description
An error representing an invalid password component.
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.
InvalidCharacter
The password contained an invalid character.
InvalidPercentEncoding
The password contained an invalid percent encoding (e.g. "%ZZ").
Trait Implementations§
Source§impl Clone for PasswordError
impl Clone for PasswordError
Source§fn clone(&self) -> PasswordError
fn clone(&self) -> PasswordError
Returns a copy 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 PasswordError
impl Debug for PasswordError
Source§impl Display for PasswordError
impl Display for PasswordError
Source§impl Error for PasswordError
impl Error for PasswordError
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<Infallible> for PasswordError
impl From<Infallible> for PasswordError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<PasswordError> for AuthorityError
impl From<PasswordError> for AuthorityError
Source§fn from(value: PasswordError) -> Self
fn from(value: PasswordError) -> Self
Converts to this type from the input type.
Source§impl Hash for PasswordError
impl Hash for PasswordError
Source§impl PartialEq for PasswordError
impl PartialEq for PasswordError
impl Copy for PasswordError
impl Eq for PasswordError
impl StructuralPartialEq for PasswordError
Auto Trait Implementations§
impl Freeze for PasswordError
impl RefUnwindSafe for PasswordError
impl Send for PasswordError
impl Sync for PasswordError
impl Unpin for PasswordError
impl UnwindSafe for PasswordError
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