Enum ReadlineError
#[non_exhaustive]
pub enum ReadlineError
The error type for Rustyline errors that can arise from I/O related errors or Errno when using the nix-rust library
Variants
-
Io(Error) I/O Error
-
Eof EOF (VEOF / Ctrl-D)
-
Interrupted Interrupt signal (VINTR / VQUIT / Ctrl-C)
-
Errno(Error) Unix Error from syscall
-
Signal(Signal) Error generated on
WINDOW_BUFFER_SIZE_EVENT/SIGWINCHsignal
Trait Implementations
impl Debug for ReadlineError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for ReadlineError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for ReadlineError
fn source(&self) -> Option<&dyn Error + 'static>
impl From<Errno> for ReadlineError
fn from(err: Error) -> Self
impl From<Error> for ReadlineError
fn from(err: Error) -> Self
impl From<Error> for ReadlineError
fn from(err: Error) -> Self
impl From<ErrorKind> for ReadlineError
fn from(kind: ErrorKind) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for ReadlineError
impl !UnwindSafe for ReadlineError
impl Freeze for ReadlineError
impl Send for ReadlineError
impl Sync for ReadlineError
impl Unpin for ReadlineError
impl UnsafeUnpin for ReadlineError
Blanket Implementations
impl<T> Any for ReadlineError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ReadlineError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ReadlineError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ReadlineError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for ReadlineError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for ReadlineError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ReadlineError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ReadlineError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>