INNER CODE UNIT · Rust

take_writer

psmux/psmux · crates/portable-pty-psmux/src/lib.rs:102

    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
    /// of the process group or session leader
    #[cfg(unix)]
    fn process_group_leader(&self) -> Option<libc::pid_t>;

    /// If get_termios() and process_group_leader() are both implemented and

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…