pub trait DeviceProxyInterface: Send + Sync {
type InjectResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn inject(&self, events: Vec<Event>) -> Self::InjectResponseFut;
fn inject_events(&self, events: Vec<Event>) -> Result<(), Error>;
}Required Associated Types§
Required Methods§
fn inject(&self, events: Vec<Event>) -> Self::InjectResponseFut
fn inject_events(&self, events: Vec<Event>) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".