Struct mouse_keyboard_input::VirtualDevice
source · pub struct VirtualDevice {
pub sender: ChannelSender,
/* private fields */
}
Fields§
§sender: ChannelSender
Implementations§
source§impl VirtualDevice
impl VirtualDevice
pub fn default() -> Result<Self>
pub fn new(writing_interval: Duration, channel_size: usize) -> Result<Self>
pub fn send_to_channel( kind: u16, code: u16, value: i32, sender: &ChannelSender ) -> EmptyResult
pub fn send_press(button: Button, sender: &ChannelSender) -> EmptyResult
pub fn send_release(button: Button, sender: &ChannelSender) -> EmptyResult
pub fn send_click(button: Button, sender: &ChannelSender) -> EmptyResult
pub fn send_mouse_move_x(x: Coord, sender: &ChannelSender) -> EmptyResult
pub fn send_mouse_move_y(y: Coord, sender: &ChannelSender) -> EmptyResult
pub fn send_mouse_move( x: Coord, y: Coord, sender: &ChannelSender ) -> EmptyResult
pub fn send_scroll_x(value: Coord, sender: &ChannelSender) -> EmptyResult
pub fn send_scroll_y(value: Coord, sender: &ChannelSender) -> EmptyResult
pub fn flush_channel_every_interval(self) -> JoinHandle<()>
pub fn synchronize(&mut self) -> EmptyResult
pub fn move_mouse_x(&mut self, x: Coord) -> EmptyResult
pub fn move_mouse_y(&mut self, y: Coord) -> EmptyResult
pub fn move_mouse(&mut self, x: Coord, y: Coord) -> EmptyResult
pub fn scroll_x(&mut self, value: Coord) -> EmptyResult
pub fn scroll_y(&mut self, value: Coord) -> EmptyResult
pub fn press(&mut self, button: Button) -> EmptyResult
pub fn release(&mut self, button: Button) -> EmptyResult
pub fn click(&mut self, button: Button) -> EmptyResult
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VirtualDevice
impl Send for VirtualDevice
impl Sync for VirtualDevice
impl Unpin 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