Enum may_clack::error::ClackError
source · #[non_exhaustive]pub enum ClackError {
IoError(Error),
Cancelled,
ReadlineError(ReadlineError),
NoOptions,
}Expand description
The error type for clack errors
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError(Error)
I/O error
Cancelled
Clack input cancelled
ReadlineError(ReadlineError)
Rustyline readline error
NoOptions
No options specified
Trait Implementations§
source§impl Debug for ClackError
impl Debug for ClackError
source§impl Display for ClackError
impl Display for ClackError
source§impl Error for ClackError
impl Error for ClackError
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 ClackError
impl From<Error> for ClackError
source§impl From<ReadlineError> for ClackError
impl From<ReadlineError> for ClackError
source§fn from(source: ReadlineError) -> Self
fn from(source: ReadlineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClackError
impl Send for ClackError
impl Sync for ClackError
impl Unpin for ClackError
impl !UnwindSafe for ClackError
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