Enum bonsaidb_local::cli::ReadPasswordError
source · pub enum ReadPasswordError {
Cancelled,
PasswordConfirmationFailed,
Io(Error),
}
Expand description
An error that may occur from reading a password from the terminal.
Variants§
Cancelled
The password input was cancelled.
PasswordConfirmationFailed
The confirmation password did not match the originally entered password.
Io(Error)
An error occurred interacting with the terminal.
Trait Implementations§
source§impl Debug for ReadPasswordError
impl Debug for ReadPasswordError
source§impl Display for ReadPasswordError
impl Display for ReadPasswordError
source§impl Error for ReadPasswordError
impl Error for ReadPasswordError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for ReadPasswordError
impl From<Error> for ReadPasswordError
source§impl From<ReadPasswordError> for Error
impl From<ReadPasswordError> for Error
source§fn from(source: ReadPasswordError) -> Self
fn from(source: ReadPasswordError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadPasswordError
impl Send for ReadPasswordError
impl Sync for ReadPasswordError
impl Unpin for ReadPasswordError
impl !UnwindSafe for ReadPasswordError
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