pub trait TerminalImpl: Send {
type Event: Clone + Debug;
// Required methods
fn event_stream(&mut self) -> Result<BoxStream<'static, Self::Event>>;
fn received_ctrl_c(event: Self::Event) -> bool;
fn draw<F>(&mut self, f: F) -> Result<()>
where F: FnOnce(&mut Frame<'_>);
fn insert_before<F>(&mut self, height: u16, draw_fn: F) -> Result<()>
where F: FnOnce(&mut Buffer);
}Required Associated Types§
Required Methods§
fn event_stream(&mut self) -> Result<BoxStream<'static, Self::Event>>
fn received_ctrl_c(event: Self::Event) -> bool
fn draw<F>(&mut self, f: F) -> Result<()>
fn insert_before<F>(&mut self, height: u16, draw_fn: F) -> Result<()>
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.