pub enum PtyError {
}Expand description
The error type for PTY operations.
This enum represents all possible errors that can occur when creating, using, or managing pseudo-terminals across different platforms.
Variants§
Create(Error)
Failed to create a new PTY.
Spawn(Error)
Failed to spawn a child process.
Io(Error)
An I/O error occurred during PTY operations.
SetAttributes(Error)
Failed to set terminal attributes.
GetAttributes(Error)
Failed to get terminal attributes.
Resize(Error)
Failed to resize the PTY.
Closed
The PTY has been closed.
ProcessExited(i32)
The child process has exited.
ProcessSignaled(i32)
The child process was killed by a signal.
Signal(Error)
Failed to send a signal to the child process.
Wait(Error)
Failed to wait for the child process.
InvalidWindowSize
Invalid window size specified.
Timeout
The operation timed out.
Unix
Platform-specific error on Unix.
Trait Implementations§
Source§impl Error for PtyError
impl Error for PtyError
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 Freeze for PtyError
impl !RefUnwindSafe for PtyError
impl Send for PtyError
impl Sync for PtyError
impl Unpin for PtyError
impl !UnwindSafe for PtyError
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