#[repr(u32)]pub enum Response {
Pong = 0,
RomEntry = 1,
RomNotRecognised = 2,
Error = 2_147_483_648,
NoRom = 2_147_483_649,
Unknown = 4_294_967_295,
}Expand description
Responses from One ROM Lab to Commands
Variants§
Pong = 0
Ping response
RomEntry = 1
ReadRom successful response. Following this word, is the ROM metadata
as a sequence of bytes. See LabRomEntry.
- Name of the ROM, followed by 0
- Part number of the ROM, followed by 0
- 32-bit wrapping checksum of the ROM, little endian encoded
- 20 byte SHA1 digest of the ROM
RomNotRecognised = 2
ROM (probably) connected but not recognised. No data follows
Error = 2_147_483_648
One ROM Lab hit an error
NoRom = 2_147_483_649
One ROM Lab did not detect a ROM connected, but it may have been unrecognised
Unknown = 4_294_967_295
Implementations§
Trait Implementations§
impl Copy for Response
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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