#[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 (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 ViaCommand
Source§impl Debug for ViaCommand
impl Debug for ViaCommand
impl Eq for ViaCommand
Source§impl From<u8> for ViaCommand
impl From<u8> for ViaCommand
Source§impl Ord for ViaCommand
impl Ord for ViaCommand
Source§fn cmp(&self, other: &ViaCommand) -> Ordering
fn cmp(&self, other: &ViaCommand) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ViaCommand
impl PartialEq for ViaCommand
Source§impl PartialOrd for ViaCommand
impl PartialOrd 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 UnsafeUnpin for ViaCommand
impl UnwindSafe for ViaCommand
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