Enum KeymapCallback
pub enum KeymapCallback {
Reset,
ResetToBootloader,
Bluetooth(BluetoothProfileCommand),
Custom(u8, u8),
}Expand description
Callbacks for effect keys in the keymap.
Variants§
Reset
Reset the keyboard
ResetToBootloader
Reset the keyboard to bootloader
Bluetooth(BluetoothProfileCommand)
Reset the keyboard to bootloader
Custom(u8, u8)
A custom callback. Its behaviour is specific to the firmware implementation.
Trait Implementations§
§impl Clone for KeymapCallback
impl Clone for KeymapCallback
§fn clone(&self) -> KeymapCallback
fn clone(&self) -> KeymapCallback
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 KeymapCallback
§impl Debug for KeymapCallback
impl Debug for KeymapCallback
§impl<'de> Deserialize<'de> for KeymapCallback
impl<'de> Deserialize<'de> for KeymapCallback
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeymapCallback, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeymapCallback, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeymapCallback
§impl PartialEq for KeymapCallback
impl PartialEq for KeymapCallback
impl StructuralPartialEq for KeymapCallback
Auto Trait Implementations§
impl Freeze for KeymapCallback
impl RefUnwindSafe for KeymapCallback
impl Send for KeymapCallback
impl Sync for KeymapCallback
impl Unpin for KeymapCallback
impl UnsafeUnpin for KeymapCallback
impl UnwindSafe for KeymapCallback
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