Enum bonsaidb::local::cli::ReadPasswordError
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§
§impl Debug for ReadPasswordError
impl Debug for ReadPasswordError
§impl Display for ReadPasswordError
impl Display for ReadPasswordError
§impl Error for ReadPasswordError
impl Error for ReadPasswordError
§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()
§impl From<Error> for ReadPasswordError
impl From<Error> for ReadPasswordError
§fn from(source: Error) -> ReadPasswordError
fn from(source: Error) -> ReadPasswordError
Converts to this type from the input type.
§impl From<ReadPasswordError> for Error
impl From<ReadPasswordError> for Error
§fn from(source: ReadPasswordError) -> Error
fn from(source: ReadPasswordError) -> Error
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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