pub enum KeyPhase {
Down,
Repeat,
Up,
}Expand description
Where a key is in its press (docs/menus.md “Keys”).
Variants§
Down
The key went down.
Repeat
The key is held and the platform repeated it. A handler that acts once per press
ignores this phase; one that moves while a key is held treats it like Down.
Up
The key came up. Reported where Cap::KeyPhases is supported.
Implementations§
Trait Implementations§
impl Copy for KeyPhase
impl Eq for KeyPhase
impl StructuralPartialEq for KeyPhase
Auto Trait Implementations§
impl Forget for KeyPhase
impl Freeze for KeyPhase
impl Move for KeyPhase
impl RefUnwindSafe for KeyPhase
impl Send for KeyPhase
impl Sync for KeyPhase
impl Unpin for KeyPhase
impl UnsafeUnpin for KeyPhase
impl UnwindSafe for KeyPhase
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