tty_interface/
result.rs

1/// An interface operation's result containing either a successful value or error.
2pub type Result<T> = std::result::Result<T, Error>;
3
4/// A failed interface operation's error information.
5#[derive(Debug)]
6pub enum Error {
7    /// A low-level terminal interaction error.
8    Terminal(crossterm::ErrorKind),
9}
10
11impl From<crossterm::ErrorKind> for Error {
12    fn from(err: crossterm::ErrorKind) -> Self {
13        Error::Terminal(err)
14    }
15}