pub trait TouchSourceProxyInterface: Send + Sync {
type WatchResponseFut: Future<Output = Result<Vec<TouchEvent>, Error>> + Send;
type UpdateResponseResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn watch(&self, responses: &[TouchResponse]) -> Self::WatchResponseFut;
fn update_response(
&self,
interaction: &TouchInteractionId,
response: &TouchResponse,
) -> Self::UpdateResponseResponseFut;
}Required Associated Types§
type WatchResponseFut: Future<Output = Result<Vec<TouchEvent>, Error>> + Send
type UpdateResponseResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn watch(&self, responses: &[TouchResponse]) -> Self::WatchResponseFut
fn update_response( &self, interaction: &TouchInteractionId, response: &TouchResponse, ) -> Self::UpdateResponseResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".