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§
Sourcefn send_cursor_up(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
fn send_cursor_up(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
Send cursor up.
Sourcefn send_cursor_down(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
fn send_cursor_down(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
Send cursor down.
Sourcefn send_cursor_right(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
fn send_cursor_right(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
Send cursor right.
Sourcefn send_cursor_left(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
fn send_cursor_left(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
Send cursor left.
Sourcefn send_home(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
fn send_home(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
Send home key.
Sourcefn send_end(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
fn send_end(&mut self) -> impl Future<Output = Result<()>> + Sendwhere
Self: Send,
Send end 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.