pub enum PickerError {
Io(Error),
Empty,
NoEnabledItems,
Cancelled,
}Expand description
Errors returned while rendering or driving an interactive picker.
Variants§
Io(Error)
Underlying terminal or stream I/O failed.
Empty
The picker was invoked with no items.
NoEnabledItems
The picker had items, but none were selectable.
Cancelled
The user or input stream cancelled with Escape, Ctrl-C, Ctrl-D/EOF, or
q.
Trait Implementations§
Source§impl Debug for PickerError
impl Debug for PickerError
Source§impl Display for PickerError
impl Display for PickerError
Source§impl Error for PickerError
impl Error for PickerError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for PickerError
impl !UnwindSafe for PickerError
impl Freeze for PickerError
impl Send for PickerError
impl Sync for PickerError
impl Unpin for PickerError
impl UnsafeUnpin for PickerError
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