pub struct InputEmulation { /* private fields */ }Implementations§
Source§impl InputEmulation
impl InputEmulation
pub async fn new( backend: Option<Backend>, ) -> Result<InputEmulation, EmulationCreationError>
pub async fn consume( &mut self, event: Event, handle: EmulationHandle, ) -> Result<(), EmulationError>
pub async fn create(&mut self, handle: EmulationHandle) -> bool
pub async fn destroy(&mut self, handle: EmulationHandle)
pub async fn terminate(&mut self)
pub async fn release_keys( &mut self, handle: EmulationHandle, ) -> Result<(), EmulationError>
pub fn has_pressed_keys(&self, handle: EmulationHandle) -> bool
Auto Trait Implementations§
impl Freeze for InputEmulation
impl !RefUnwindSafe for InputEmulation
impl Send for InputEmulation
impl !Sync for InputEmulation
impl Unpin for InputEmulation
impl !UnwindSafe for InputEmulation
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