INNER CODE UNIT · Rust
try_clone_reader
psmux/psmux · crates/portable-pty-psmux/src/lib.rs:97
fn try_clone_reader(&self) -> Result<Box<dyn std::io::Read + Send>, Error>;
/// Obtain a writable handle; writing to it will send data to the
/// slave end.
/// Dropping the writer will send EOF to the slave end.
/// It is invalid to take the writer more than once.
fn take_writer(&self) -> Result<Box<dyn std::io::Write + Send>, Error>;
/// Whether this is a ConPTY created with passthrough mode enabled.
///
/// `None` means that the pty implementation is not ConPTY, or does not
/// expose this implementation-specific detail. The result should be
/// queried after spawning a child: ConPTY can fall back to a newly-created
/// non-passthrough console when process creation rejects passthrough mode.
fn conpty_passthrough_mode(&self) -> Option<bool> {
None
}
/// If applicable to the type of the tty, return the local process id