AnsiSend

Trait AnsiSend 

Source
pub trait AnsiSend: BasicSend {
    // Provided methods
    fn send_cursor_up(&mut self) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
    fn send_cursor_down(&mut self) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
    fn send_cursor_right(&mut self) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
    fn send_cursor_left(&mut self) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
    fn send_home(&mut self) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
    fn send_end(&mut self) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
    fn send_delete(&mut self) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
    fn send_function_key(
        &mut self,
        n: u8,
    ) -> impl Future<Output = Result<()>> + Send
       where Self: Send { ... }
}
Expand description

Extension trait for sending ANSI sequences.

Provided Methods§

Source

fn send_cursor_up(&mut self) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send cursor up.

Source

fn send_cursor_down(&mut self) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send cursor down.

Source

fn send_cursor_right(&mut self) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send cursor right.

Source

fn send_cursor_left(&mut self) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send cursor left.

Source

fn send_home(&mut self) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send home key.

Source

fn send_end(&mut self) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send end key.

Source

fn send_delete(&mut self) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send delete key.

Source

fn send_function_key( &mut self, n: u8, ) -> impl Future<Output = Result<()>> + Send
where Self: Send,

Send a function key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§