TerminalImpl

Trait TerminalImpl 

Source
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§

Source

fn event_stream(&mut self) -> Result<BoxStream<'static, Self::Event>>

Source

fn received_ctrl_c(event: Self::Event) -> bool

Source

fn draw<F>(&mut self, f: F) -> Result<()>
where F: FnOnce(&mut Frame<'_>),

Source

fn insert_before<F>(&mut self, height: u16, draw_fn: F) -> Result<()>
where F: FnOnce(&mut Buffer),

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§