Enum rustyline::error::ReadlineError
source · #[non_exhaustive]pub enum ReadlineError {
Io(Error),
Eof,
Interrupted,
Errno(Error),
WindowResized,
}
Expand description
The error type for Rustyline errors that can arise from I/O related errors or Errno when using the nix-rust library
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.
Io(Error)
I/O Error
Eof
EOF (VEOF / Ctrl-D)
Interrupted
Interrupt signal (VINTR / VQUIT / Ctrl-C)
Errno(Error)
Unix Error from syscall
WindowResized
Error generated on WINDOW_BUFFER_SIZE_EVENT / SIGWINCH signal
Trait Implementations§
source§impl Debug for ReadlineError
impl Debug for ReadlineError
source§impl Display for ReadlineError
impl Display for ReadlineError
source§impl Error for ReadlineError
impl Error for ReadlineError
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()
source§impl From<Errno> for ReadlineError
impl From<Errno> for ReadlineError
source§impl From<Error> for ReadlineError
impl From<Error> for ReadlineError
source§impl From<Error> for ReadlineError
impl From<Error> for ReadlineError
Auto Trait Implementations§
impl Freeze for ReadlineError
impl !RefUnwindSafe for ReadlineError
impl Send for ReadlineError
impl Sync for ReadlineError
impl Unpin for ReadlineError
impl !UnwindSafe for ReadlineError
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