pub struct InputDistributor { /* private fields */ }
Expand description
Distributes keyboard and mouse input to the appropriate devices.
Implementations§
Source§impl InputDistributor
impl InputDistributor
Sourcepub fn new(input: Receiver<InputData>) -> Self
pub fn new(input: Receiver<InputData>) -> Self
Returns a new distributor for the provided input channel.
pub fn client(&self) -> &InputDistributorClient
Sourcepub fn into_inner(self) -> Receiver<InputData>
pub fn into_inner(self) -> Receiver<InputData>
Returns the input channel.
Sourcepub async fn run(&mut self, recv: &mut Receiver<StateRequest>)
pub async fn run(&mut self, recv: &mut Receiver<StateRequest>)
Runs the distributor.
Auto Trait Implementations§
impl Freeze for InputDistributor
impl !RefUnwindSafe for InputDistributor
impl Send for InputDistributor
impl Sync for InputDistributor
impl Unpin for InputDistributor
impl !UnwindSafe for InputDistributor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more