INNER CODE UNIT · Rust

resize

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

    fn resize(&self, size: PtySize) -> Result<(), Error>;
    /// Retrieves the size of the pty as known by the kernel
    fn get_size(&self) -> Result<PtySize, Error>;
    /// Obtain a readable handle; output from the slave(s) is readable
    /// via this stream.
    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.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…