pub struct PtyPair { /* private fields */ }Implementations§
Source§impl PtyPair
impl PtyPair
Sourcepub async fn spawn(
self,
command: Command,
) -> Result<(PseudoTerminal, Child), SpawnError>
pub async fn spawn( self, command: Command, ) -> Result<(PseudoTerminal, Child), SpawnError>
Spawn a child process as the session leader of a new process group with the pseudo terminal as controlling terminal.
Also returns the parent side of the pseudo terminal as PseudoTerminal object.
Auto Trait Implementations§
impl Freeze for PtyPair
impl RefUnwindSafe for PtyPair
impl Send for PtyPair
impl Sync for PtyPair
impl Unpin 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