tty_interface/
result.rs

1use thiserror::Error as ThisError;
2
3/// An interface operation's result containing either a successful value or error.
4pub type Result<T> = std::result::Result<T, Error>;
5
6/// A failed interface operation's error information.
7#[derive(ThisError, Debug)]
8pub enum Error {
9    #[error("terminal interaction error")]
10    Terminal(#[from] std::io::Error),
11}