e4pty 0.1.9

abstract api for pty
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("io error: {0}")]
    IO(#[from] std::io::Error),
    #[cfg(not(windows))]
    #[error("openpty error: {0}")]
    Errno(#[from] rustix_openpty::rustix::io::Errno),
    #[cfg(windows)]
    #[error("openpty error: {0}")]
    Windows(#[from] windows::core::Error),
    #[error("unknown error: {0}")]
    Unknown(String),
}

pub type Result<T, E = Error> = std::result::Result<T, E>;