pub enum PasswordError {
NoPassword,
PasswordCallback(String),
}
Expand description
Password related error codes.
Variants§
NoPassword
No password callback is assigned to the container, thus no password is available.
PasswordCallback(String)
The password callback generated an error, which is passed to the variant.
Trait Implementations§
Source§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<PasswordError> for HeaderError
impl From<PasswordError> for HeaderError
Source§fn from(source: PasswordError) -> Self
fn from(source: PasswordError) -> Self
Converts to this type from the input type.
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