pub trait AsyncTouchInputDevice {
type Error;
// Required method
fn touches(
&mut self,
) -> impl Future<Output = Result<impl IntoIterator<Item = Touch>, Error<Self::Error>>>;
}Expand description
Async interface for event-driven operation of touch devices
Required Associated Types§
Required Methods§
Sourcefn touches(
&mut self,
) -> impl Future<Output = Result<impl IntoIterator<Item = Touch>, Error<Self::Error>>>
fn touches( &mut self, ) -> impl Future<Output = Result<impl IntoIterator<Item = Touch>, Error<Self::Error>>>
Asynchronously wait until touch points are available
Returns an iterator of touch points currently detected. Drivers must track touch IDs across calls to maintain correct phase information.
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.