pub struct VirtualDevice { /* private fields */ }Implementations§
Source§impl VirtualDevice
impl VirtualDevice
pub fn key_down(&mut self, code: Key) -> Result<()>
pub fn key_up(&mut self, code: Key) -> Result<()>
pub fn key(&mut self, code: Key) -> Result<()>
pub fn key_write(&mut self, text: &str, delay_ms: u64) -> Result<()>
pub fn mouse_down(&mut self, button: Mouse) -> Result<()>
pub fn mouse_up(&mut self, button: Mouse) -> Result<()>
pub fn mouse_click(&mut self, button: Mouse) -> Result<()>
pub fn mouse_move(&mut self, x: i32, y: i32) -> Result<()>
pub fn mouse_move_relative(&mut self, x: i32, y: i32) -> Result<()>
pub fn wait(&self, milliseconds: u64)
Auto Trait Implementations§
impl Freeze for VirtualDevice
impl RefUnwindSafe for VirtualDevice
impl Send for VirtualDevice
impl Sync for VirtualDevice
impl Unpin for VirtualDevice
impl UnsafeUnpin for VirtualDevice
impl UnwindSafe for VirtualDevice
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