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)>
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()