pub trait AsyncTouchScreen {
    type Error;
    // Required method
    fn touches(
        &mut self,
    ) -> impl Future<Output = Result<impl IntoIterator<Item = Touch>, Error<Self::Error>>>;
}Expand description
Async touch screen interface for event-driven operation
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.