Enum inquire::error::InquireError
source · pub enum InquireError {
NotTTY,
InvalidConfiguration(String),
IO(Error),
OperationCanceled,
OperationInterrupted,
Custom(CustomUserError),
}
Expand description
Possible errors returned by inquire
prompts.
Variants§
NotTTY
The input device is not a TTY, which means that enabling raw mode on the terminal in order to listen to input events is not possible.
InvalidConfiguration(String)
The given prompt configuration is not valid. A detailed error message is contained in the value string.
IO(Error)
Error while executing IO operations.
OperationCanceled
The user canceled the operation by pressing ESC.
OperationInterrupted
The operation was interrupted by the user after they pressed Ctrl+C.
This error will be returned only when using crossterm
or termion
as the terminal back-end. If using console
,
pressing Ctrl+C will trigger SIGINT.
Custom(CustomUserError)
Error while executing IO operations.
Trait Implementations§
source§impl Debug for InquireError
impl Debug for InquireError
source§impl Display for InquireError
impl Display for InquireError
source§impl Error for InquireError
impl Error for InquireError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for InquireError
impl Send for InquireError
impl Sync for InquireError
impl Unpin for InquireError
impl !UnwindSafe for InquireError
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