#[repr(u8)]pub enum ViaCommand {
Show 23 variants
GetProtocolVersion = 1,
GetKeyboardValue = 2,
SetKeyboardValue = 3,
DynamicKeymapGetKeyCode = 4,
DynamicKeymapSetKeyCode = 5,
DynamicKeymapReset = 6,
CustomSetValue = 7,
CustomGetValue = 8,
CustomSave = 9,
EepromReset = 10,
BootloaderJump = 11,
DynamicKeymapMacroGetCount = 12,
DynamicKeymapMacroGetBufferSize = 13,
DynamicKeymapMacroGetBuffer = 14,
DynamicKeymapMacroSetBuffer = 15,
DynamicKeymapMacroReset = 16,
DynamicKeymapGetLayerCount = 17,
DynamicKeymapGetBuffer = 18,
DynamicKeymapSetBuffer = 19,
DynamicKeymapGetEncoder = 20,
DynamicKeymapSetEncoder = 21,
Vial = 254,
Unhandled = 255,
}Expand description
Via communication commands.
Variants§
GetProtocolVersion = 1
GetKeyboardValue = 2
SetKeyboardValue = 3
DynamicKeymapGetKeyCode = 4
DynamicKeymapSetKeyCode = 5
DynamicKeymapReset = 6
CustomSetValue = 7
CustomGetValue = 8
CustomSave = 9
EepromReset = 10
BootloaderJump = 11
DynamicKeymapMacroGetCount = 12
DynamicKeymapMacroGetBufferSize = 13
DynamicKeymapMacroGetBuffer = 14
DynamicKeymapMacroSetBuffer = 15
DynamicKeymapMacroReset = 16
DynamicKeymapGetLayerCount = 17
DynamicKeymapGetBuffer = 18
DynamicKeymapSetBuffer = 19
DynamicKeymapGetEncoder = 20
DynamicKeymapSetEncoder = 21
Vial = 254
Unhandled = 255
Implementations§
Source§impl ViaCommand
impl ViaCommand
Trait Implementations§
Source§impl Clone for ViaCommand
impl Clone for ViaCommand
Source§fn clone(&self) -> ViaCommand
fn clone(&self) -> ViaCommand
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViaCommand
impl Debug for ViaCommand
Source§impl From<u8> for ViaCommand
impl From<u8> for ViaCommand
Source§impl Ord for ViaCommand
impl Ord for ViaCommand
Source§impl PartialEq for ViaCommand
impl PartialEq for ViaCommand
Source§impl PartialOrd for ViaCommand
impl PartialOrd for ViaCommand
impl Copy for ViaCommand
impl Eq for ViaCommand
impl StructuralPartialEq for ViaCommand
Auto Trait Implementations§
impl Freeze for ViaCommand
impl RefUnwindSafe for ViaCommand
impl Send for ViaCommand
impl Sync for ViaCommand
impl Unpin for ViaCommand
impl UnwindSafe for ViaCommand
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)