pub trait Simulate {
// Required method
fn send_events(&self, events: impl IntoIterator<Item = Event>) -> Result<()>;
}
Expand description
A trait to handle the input simulation.
Required Methods§
Sourcefn send_events(&self, events: impl IntoIterator<Item = Event>) -> Result<()>
fn send_events(&self, events: impl IntoIterator<Item = Event>) -> Result<()>
Simulates the specified events.
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.