#[non_exhaustive]pub enum Error {
}Expand description
An error that stopped ree from resetting the terminal.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoTerminal
No usable terminal was attached to standard input, output, error, or /dev/tty.
NotForegroundProcess
The process is in a background job and must not change another job’s terminal.
GetForegroundProcess(Errno)
The process could not prove that it owns the terminal foreground.
ResumeOutput(Errno)
The terminal output queue could not be resumed.
GetTerminalState(Errno)
The current terminal driver state could not be read.
SetTerminalState(Errno)
The repaired terminal driver state could not be applied.
TermNotSet
TERM is absent from the process environment.
InvalidTermName
TERM contains characters that cannot name a terminfo entry safely.
TerminfoNotFound
No compiled terminfo entry was found for TERM.
TerminfoUnreadable
A compiled terminfo entry could not be read.
InvalidTerminfo
A compiled terminfo entry was structurally invalid.
TerminalWrite(Errno)
A write to the terminal failed.
TerminalWriteMadeNoProgress
A terminal write returned zero bytes before all reset data was sent.
Implementations§
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()