#[non_exhaustive]pub enum KeyboardAction {
Bootloader,
Reboot,
DebugToggle,
ClearEeprom,
OutputAuto,
OutputUsb,
OutputBluetooth,
ComboOn,
ComboOff,
ComboToggle,
CapsWordToggle,
}Expand description
Actions for controlling the keyboard or changing the keyboard’s state, for example, enable/disable a particular function
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bootloader
Reboot
DebugToggle
ClearEeprom
OutputAuto
OutputUsb
OutputBluetooth
ComboOn
ComboOff
ComboToggle
CapsWordToggle
Trait Implementations§
Source§impl Clone for KeyboardAction
impl Clone for KeyboardAction
Source§fn clone(&self) -> KeyboardAction
fn clone(&self) -> KeyboardAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyboardAction
Source§impl Debug for KeyboardAction
impl Debug for KeyboardAction
Source§impl<'de> Deserialize<'de> for KeyboardAction
impl<'de> Deserialize<'de> for KeyboardAction
Source§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
impl Eq for KeyboardAction
Source§impl MaxSize for KeyboardAction
impl MaxSize for KeyboardAction
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
Source§impl PartialEq for KeyboardAction
impl PartialEq for KeyboardAction
Source§impl Serialize for KeyboardAction
impl Serialize for KeyboardAction
impl StructuralPartialEq for KeyboardAction
Auto Trait Implementations§
impl Freeze for KeyboardAction
impl RefUnwindSafe for KeyboardAction
impl Send for KeyboardAction
impl Sync for KeyboardAction
impl Unpin for KeyboardAction
impl UnsafeUnpin for KeyboardAction
impl UnwindSafe for KeyboardAction
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