Trait input_core::InputSource

source ·
pub trait InputSource<T>:
    Stream<Item = T>
    + Unpin
    + Send {
    // Required method
    fn set_active(
        &mut self,
        active: bool,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>;
}
Expand description

Trait implemented by input sources.

Required Methods§

source

fn set_active( &mut self, active: bool, ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>

Sets this input source active, so that the sending side can choose which device to send input to.

Implementors§

source§

impl<T: 'static + Send> InputSource<T> for MeshInputSource<T>