pub enum Command {
Off,
Sensor,
KeepAlive,
}Expand description
A command written to the controller.
The controller also has a “VR mode” (08 00). It does not work when the controller is
driven from a computer, so it is not offered here.
Variants§
Off
Stop sending data.
Sensor
Start sending 60-byte data packets.
KeepAlive
Keep-alive. It does not stop the controller sleeping when left untouched.
Implementations§
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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