Skip to main content

ExecPtyStream

Type Alias ExecPtyStream 

Source
pub type ExecPtyStream = Box<dyn ExecDuplex + 'static>;
Expand description

Duplex byte stream used by ExecHandle to shuttle stdin/stdout (and, when ExecOptions::tty is set, multiplexed PTY traffic) between the caller and the exec’d process.

Unpin is required (via ExecDuplex) so callers can poll the trait object directly via the usual tokio::io::AsyncReadExt / AsyncWriteExt extension methods without having to pin the box themselves.

Aliased Type§

pub struct ExecPtyStream(/* private fields */);