[][src]Struct enigo::Enigo

pub struct Enigo { /* fields omitted */ }

The main struct for handling the event emitting

Methods

impl Enigo[src]

pub fn delay(&self) -> u64[src]

Get the delay per keypress. Default value is 12000. This is Linux-specific.

pub fn set_delay(&mut self, delay: u64)[src]

Set the delay per keypress. This is Linux-specific.

impl Enigo[src]

pub fn new() -> Self[src]

Constructs a new Enigo instance.

Example

use enigo::*;
let mut enigo = Enigo::new();

Trait Implementations

impl MouseControllable for Enigo[src]

impl KeyboardControllable for Enigo[src]

fn key_sequence_parse(&mut self, sequence: &str) where
    Self: Sized
[src]

Types the string parsed with DSL. Read more

fn key_sequence_parse_try(&mut self, sequence: &str) -> Result<(), ParseError> where
    Self: Sized
[src]

Same as key_sequence_parse except returns any errors

impl Drop for Enigo[src]

impl Default for Enigo[src]

fn default() -> Self[src]

Create a new Enigo instance

impl Send for Enigo[src]

impl Debug for Enigo[src]

Auto Trait Implementations

impl !Sync for Enigo

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]