#[repr(u32)]pub enum Command {
Ping = 0,
ReadRom = 1,
GetRawData = 2,
Unknown = 4_294_967_295,
}Expand description
Commands supported by One ROM Lab
Variants§
Ping = 0
Response with a Pong. No data follows.
ReadRom = 1
Trigger a read of the connected ROM. No data follows.
GetRawData = 2
Trigger a read of a set of raw data associated with the last ROM read.
Data follows - see GetRawData.
Unknown = 4_294_967_295
Unknown command, do not use. No data follows.
Implementations§
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin 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