pub enum RtError {
Io(Error),
Control(Errno),
}Expand description
Failures of the terminal lifecycle: the crate’s one error enum.
Variants§
Io(Error)
An open, read or write on the terminal failed: no controlling terminal exists, or the stream broke mid-exchange.
Control(Errno)
A termios or poll operation failed mid-exchange.
Trait Implementations§
Source§impl Error for RtError
impl Error for RtError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for RtError
impl !UnwindSafe for RtError
impl Forget for RtError
impl Freeze for RtError
impl Move for RtError
impl Send for RtError
impl Sync for RtError
impl Unpin for RtError
impl UnsafeUnpin for RtError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more