Enum keyboard_types::KeyState [−][src]
pub enum KeyState {
Down,
Up,
}
Expand description
Describes the state the key is in.
Variants
Key is pressed.
In JS: “keydown” event firing.
Key is released.
In JS: “keyup event”.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for KeyState
impl UnwindSafe for KeyState
Blanket Implementations
Mutably borrows from an owned value. Read more