Skip to main content

SessionExt

Trait SessionExt 

Source
pub trait SessionExt {
    // Required methods
    fn send_expect(
        &mut self,
        send: &str,
        expect: impl Into<Pattern>,
    ) -> impl Future<Output = Result<Match>> + Send;
    fn resize(
        &mut self,
        dimensions: Dimensions,
    ) -> impl Future<Output = Result<()>> + Send;
}
Expand description

Extension trait for session operations.

Required Methods§

Source

fn send_expect( &mut self, send: &str, expect: impl Into<Pattern>, ) -> impl Future<Output = Result<Match>> + Send

Send and expect in one call.

Source

fn resize( &mut self, dimensions: Dimensions, ) -> impl Future<Output = Result<()>> + Send

Resize the terminal.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§