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§
Sourcefn poll_ptsname(&self, cx: &mut Context<'_>) -> Poll<Result<OsString, Error>>
fn poll_ptsname(&self, cx: &mut Context<'_>) -> Poll<Result<OsString, Error>>
Return the full pathname of the slave device counterpart