#[repr(u8)]pub enum PacketCommand {
NeuronFiring = 1,
SetGpio = 2,
SetPwm = 3,
SetLedMatrix = 4,
GetCapabilities = 5,
}Expand description
Binary packet command IDs
Variants§
NeuronFiring = 1
Neuron firing command (0x01)
SetGpio = 2
Set GPIO command (0x02)
SetPwm = 3
Set PWM command (0x03)
SetLedMatrix = 4
Set LED matrix command (0x04)
GetCapabilities = 5
Get capabilities command (0x05)
Trait Implementations§
Source§impl Clone for PacketCommand
impl Clone for PacketCommand
Source§fn clone(&self) -> PacketCommand
fn clone(&self) -> PacketCommand
Returns a duplicate 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 PacketCommand
impl Debug for PacketCommand
Source§impl PartialEq for PacketCommand
impl PartialEq for PacketCommand
Source§impl TryFrom<u8> for PacketCommand
impl TryFrom<u8> for PacketCommand
impl Copy for PacketCommand
impl Eq for PacketCommand
impl StructuralPartialEq for PacketCommand
Auto Trait Implementations§
impl Freeze for PacketCommand
impl RefUnwindSafe for PacketCommand
impl Send for PacketCommand
impl Sync for PacketCommand
impl Unpin for PacketCommand
impl UnwindSafe for PacketCommand
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