PollPtyMaster

Trait PollPtyMaster 

Source
pub trait PollPtyMaster {
    // Required methods
    fn poll_ptsname(
        &self,
        cx: &mut Context<'_>,
    ) -> Poll<Result<OsString, Error>>;
    fn poll_resize(
        &self,
        cx: &mut Context<'_>,
        rows: c_ushort,
        cols: c_ushort,
    ) -> Poll<Result<(), Error>>;
    fn poll_winsize(
        &self,
        cx: &mut Context<'_>,
    ) -> Poll<Result<(c_ushort, c_ushort), Error>>;
}
Expand description

Trait containing generalized methods for PTYs

Required Methods§

Source

fn poll_ptsname(&self, cx: &mut Context<'_>) -> Poll<Result<OsString, Error>>

Return the full pathname of the slave device counterpart

Source

fn poll_resize( &self, cx: &mut Context<'_>, rows: c_ushort, cols: c_ushort, ) -> Poll<Result<(), Error>>

Resize the PTY

Source

fn poll_winsize( &self, cx: &mut Context<'_>, ) -> Poll<Result<(c_ushort, c_ushort), Error>>

Get the PTY size

Implementors§