pub trait CliOutput {
type Error: Debug;
// Required methods
fn write_line(
&mut self,
line: &str,
) -> impl Future<Output = Result<(), Self::Error>>;
fn flush(&mut self) -> impl Future<Output = Result<(), Self::Error>>;
}Expand description
Line-writing half of the CLI transport.
Required Associated Types§
Required Methods§
fn write_line( &mut self, line: &str, ) -> impl Future<Output = Result<(), Self::Error>>
fn flush(&mut self) -> impl Future<Output = Result<(), Self::Error>>
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.