pub struct Version {
pub firmware_major: u8,
pub firmware_minor: u8,
pub debug: bool,
pub hardware_major: u8,
pub hardware_minor: u8,
pub protocol_major: u8,
pub protocol_minor: u8,
}
Expand description
Each device has version information that can be retrieved. There is a major and minor version for the firmware, hardware, and protocol. Additionally there is a flag that states whether or not the device’s firmware is in debug mode
Fields§
§firmware_major: u8
§firmware_minor: u8
§debug: bool
True means the device is in debug mode
hardware_major: u8
§hardware_minor: u8
§protocol_major: u8
§protocol_minor: u8
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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