INNER CODE UNIT · Rust
non_conpty_master_reports_no_passthrough_mode
psmux/psmux · crates/portable-pty-psmux/src/lib.rs:143
fn non_conpty_master_reports_no_passthrough_mode() {
let pair = native_pty_system().openpty(PtySize::default()).unwrap();
assert_eq!(pair.master.conpty_passthrough_mode(), None);
}
}
/// Represents a child process spawned into the pty.
/// This handle can be used to wait for or terminate that child process.
pub trait Child: std::fmt::Debug + ChildKiller + Downcast + Send {
/// Poll the child to see if it has completed.
/// Does not block.
/// Returns None if the child has not yet terminated,
/// else returns its exit status.
fn try_wait(&mut self) -> IoResult<Option<ExitStatus>>;
/// Blocks execution until the child process has completed,
/// yielding its exit status.
fn wait(&mut self) -> IoResult<ExitStatus>;