pub enum Error {
Show 13 variants
Termwiz(Error),
Regex(Error),
Io(Error),
TempfilePersist(PersistError),
Keymap(KeymapError),
Binding(BindingError),
Fmt(Error),
ChannelRecv(RecvError),
ChannelTryRecv(TryRecvError),
ChannelSend,
TerminfoDatabaseMissing,
WithCommand {
error: Box<Self>,
command: String,
},
WithFile {
error: Box<Self>,
file: String,
},
}Expand description
Main error type.
Variants§
Termwiz(Error)
Comes from Termwiz.
Regex(Error)
Comes from Regex.
Io(Error)
Generic I/O error.
TempfilePersist(PersistError)
Returned when persisting a temporary file fails.
Keymap(KeymapError)
Keymap-related error.
Binding(BindingError)
Binding-related error.
Fmt(Error)
Generic formatting error.
ChannelRecv(RecvError)
Receive error on a channel.
ChannelTryRecv(TryRecvError)
Try-receive error on a channel.
ChannelSend
Send error on a channel.
TerminfoDatabaseMissing
Error returned if the terminfo database is missing.
WithCommand
Wrapped error within the context of a command.
WithFile
Wrapped error within the context of a file.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<BindingError> for Error
impl From<BindingError> for Error
Source§fn from(source: BindingError) -> Self
fn from(source: BindingError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ControlledFileError
impl From<Error> for ControlledFileError
Source§impl From<PersistError> for Error
impl From<PersistError> for Error
Source§fn from(source: PersistError) -> Self
fn from(source: PersistError) -> Self
Converts to this type from the input type.
Source§impl From<TryRecvError> for Error
impl From<TryRecvError> for Error
Source§fn from(source: TryRecvError) -> Self
fn from(source: TryRecvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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