pub struct Pts(/* private fields */);Expand description
The child end of the pty
See open and Command::spawn
Implementations§
Source§impl Pts
impl Pts
Sourcepub unsafe fn from_fd(fd: OwnedFd) -> Self
pub unsafe fn from_fd(fd: OwnedFd) -> Self
Use the provided file descriptor as a pts.
§Safety
The provided file descriptor must be valid, open, and belong to the child end of a pty.
pub fn setup_subprocess(&self) -> Result<(Stdio, Stdio, Stdio)>
pub fn session_leader(&self) -> impl FnMut() -> Result<()> + use<>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pts
impl RefUnwindSafe for Pts
impl Send for Pts
impl Sync for Pts
impl Unpin for Pts
impl UnsafeUnpin for Pts
impl UnwindSafe for Pts
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