PtyMaster

Trait PtyMaster 

Source
pub trait PtyMaster: PollPtyMaster {
    // Required methods
    fn resize<'life0, 'async_trait>(
        &'life0 self,
        dimensions: (u16, u16),
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn size<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(u16, u16), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

An async-fn version of PollPtyMaster

Required Methods§

Source

fn resize<'life0, 'async_trait>( &'life0 self, dimensions: (u16, u16), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resizes the pty

Source

fn size<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(u16, u16), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the size of the pty

Implementors§

Source§

impl<T> PtyMaster for T
where T: PollPtyMaster + Send + Sync,