pub trait QueryTerminal: Write {
// Required methods
fn setup(&mut self) -> Result<()>;
fn cleanup(&mut self) -> Result<()>;
fn read_event(&mut self) -> Result<DcsEvent>;
}Expand description
Trait for defining a terminal source that can be queried.
Required Methods§
Sourcefn read_event(&mut self) -> Result<DcsEvent>
fn read_event(&mut self) -> Result<DcsEvent>
Read the next event from the terminal.
Implementors§
impl QueryTerminal for DefaultTerminal
Available on crate feature
query-detect only.