pub struct PtyHandles {
pub _slave: Option<Box<dyn PtyHandle>>,
pub _master: Box<dyn PtyHandle>,
}Expand description
Optional PTY-specific handles that must be preserved.
For PTY processes, the slave handle must be kept alive because the process will receive SIGHUP if it’s closed.
Fields§
§_slave: Option<Box<dyn PtyHandle>>The slave PTY handle (kept alive to prevent SIGHUP).
_master: Box<dyn PtyHandle>The master PTY handle.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PtyHandles
impl !Sync for PtyHandles
impl !UnwindSafe for PtyHandles
impl Freeze for PtyHandles
impl Send for PtyHandles
impl Unpin for PtyHandles
impl UnsafeUnpin for PtyHandles
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