Enum tfc::Command [−][src]
A future invocation of a method on a Context
.
Commands can be executed by calling
execute_command
.
Each variant corresponds to a method on either the
KeyboardContext
or MouseContext
traits.
Variants
KeyDown(Key)
Corresponds to key_down
KeyUp(Key)
Corresponds to key_up
KeyClick(Key)
Corresponds to key_click
Corresponds to mouse_move_rel
Corresponds to mouse_move_abs
Corresponds to mouse_warp
Corresponds to mouse_scroll
MouseDown(MouseButton)
Corresponds to mouse_down
MouseUp(MouseButton)
Corresponds to mouse_up
MouseClick(MouseButton)
Corresponds to mouse_click
Implementations
impl Command
[src]
pub fn execute<C>(&self, ctx: &mut C) -> Result<(), Error> where
C: KeyboardContext + MouseContext,
[src]
C: KeyboardContext + MouseContext,
Execute a Command
by calling the corresponding method on
KeyboardContext
or MouseContext
.
Trait Implementations
impl Debug for Command
[src]
impl Eq for Command
[src]
impl PartialEq<Command> for Command
[src]
impl StructuralEq for Command
[src]
impl StructuralPartialEq for Command
[src]
Auto Trait Implementations
impl RefUnwindSafe for Command
[src]
impl Send for Command
[src]
impl Sync for Command
[src]
impl Unpin for Command
[src]
impl UnwindSafe for Command
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,