Enum streampager::error::Error
source · [−]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
sourceimpl Error for Error
impl Error for Error
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BindingError> for Error
impl From<BindingError> for Error
sourcefn from(source: BindingError) -> Self
fn from(source: BindingError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ControlledFileError
impl From<Error> for ControlledFileError
sourceimpl From<PersistError> for Error
impl From<PersistError> for Error
sourcefn from(source: PersistError) -> Self
fn from(source: PersistError) -> Self
Converts to this type from the input type.
sourceimpl From<TryRecvError> for Error
impl From<TryRecvError> for Error
sourcefn from(source: TryRecvError) -> Self
fn from(source: TryRecvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more