Enum ark_api::applet::KeyEventType
source · pub enum KeyEventType {
KeyPress,
KeyRelease,
Text,
}Expand description
Key event type.
Variants§
Trait Implementations§
source§impl CheckedBitPattern for KeyEventType
impl CheckedBitPattern for KeyEventType
§type Bits = u32
type Bits = u32
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(
bits: &<KeyEventType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<KeyEventType as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for KeyEventType
impl Clone for KeyEventType
source§fn clone(&self) -> KeyEventType
fn clone(&self) -> KeyEventType
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 KeyEventType
impl Debug for KeyEventType
source§impl Hash for KeyEventType
impl Hash for KeyEventType
source§impl PartialEq<KeyEventType> for KeyEventType
impl PartialEq<KeyEventType> for KeyEventType
source§fn eq(&self, other: &KeyEventType) -> bool
fn eq(&self, other: &KeyEventType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for KeyEventType
impl TryFrom<u32> for KeyEventType
§type Error = TryFromPrimitiveError<KeyEventType>
type Error = TryFromPrimitiveError<KeyEventType>
The type returned in the event of a conversion error.
source§fn try_from(
number: u32
) -> Result<KeyEventType, TryFromPrimitiveError<KeyEventType>>
fn try_from( number: u32 ) -> Result<KeyEventType, TryFromPrimitiveError<KeyEventType>>
Performs the conversion.