pub trait CancelEvents {
// Required method
fn cancel_requested(&mut self) -> bool;
}Available on crate feature
cli-tui only.Expand description
Source of user cancel requests — abstracted from crossterm so
drive_loop is testable against a scripted sequence.
Required Methods§
Sourcefn cancel_requested(&mut self) -> bool
fn cancel_requested(&mut self) -> bool
Drain any pending input; true when the user asked to cancel
(q / Ctrl-C).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".