pub struct PtyPair {
pub master: OwnedFd,
pub slave: OwnedFd,
}Expand description
An allocated PTY pair. The slave is handed to the child (via
child_terminal_setup); the parent keeps the master and must close
its slave copy after spawning.
Fields§
§master: OwnedFd§slave: OwnedFdTrait Implementations§
Auto Trait Implementations§
impl Freeze for PtyPair
impl RefUnwindSafe for PtyPair
impl Send for PtyPair
impl Sync for PtyPair
impl Unpin for PtyPair
impl UnsafeUnpin for PtyPair
impl UnwindSafe for PtyPair
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