pub struct KeyActions { /* private fields */ }
Expand description
A sequence containing Key
actions.
Implementations§
Source§impl KeyActions
impl KeyActions
Sourcepub fn new(id: String) -> KeyActions
pub fn new(id: String) -> KeyActions
Create a new KeyActions sequence.
The id can be any string but must uniquely identify this input source.
Trait Implementations§
Source§impl Clone for KeyActions
impl Clone for KeyActions
Source§fn clone(&self) -> KeyActions
fn clone(&self) -> KeyActions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeyActions
impl Debug for KeyActions
Source§impl From<KeyActions> for ActionSequence
impl From<KeyActions> for ActionSequence
Source§fn from(ka: KeyActions) -> ActionSequence
fn from(ka: KeyActions) -> ActionSequence
Converts to this type from the input type.
Source§impl InputSource for KeyActions
impl InputSource for KeyActions
Source§fn pause(self, duration: Duration) -> KeyActions
fn pause(self, duration: Duration) -> KeyActions
Add a pause action to the sequence for this input source.
Source§fn then(self, action: <KeyActions as InputSource>::Action) -> KeyActions
fn then(self, action: <KeyActions as InputSource>::Action) -> KeyActions
Add the specified action to the sequence for this input source.
Auto Trait Implementations§
impl Freeze for KeyActions
impl RefUnwindSafe for KeyActions
impl Send for KeyActions
impl Sync for KeyActions
impl Unpin for KeyActions
impl UnwindSafe for KeyActions
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