pub struct DeviceStatus {
pub port: u8,
pub device_type: DeviceType,
pub status: u8,
pub beta_version: u8,
pub version: u16,
pub boot_version: u16,
}
Fields§
§port: u8
1-indexed smart port number. Port 22 is the internal ADI expander and Port 23 is the battery.
device_type: DeviceType
Following V5_DeviceType
status: u8
1 = smart port device, 0 = otherwise. (UNCONFIRMED)
beta_version: u8
§version: u16
§boot_version: u16
Trait Implementations§
Source§impl Clone for DeviceStatus
impl Clone for DeviceStatus
Source§fn clone(&self) -> DeviceStatus
fn clone(&self) -> DeviceStatus
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 DeviceStatus
impl Debug for DeviceStatus
Source§impl Decode for DeviceStatus
impl Decode for DeviceStatus
Source§impl PartialEq for DeviceStatus
impl PartialEq for DeviceStatus
impl Copy for DeviceStatus
impl Eq for DeviceStatus
impl StructuralPartialEq for DeviceStatus
Auto Trait Implementations§
impl Freeze for DeviceStatus
impl RefUnwindSafe for DeviceStatus
impl Send for DeviceStatus
impl Sync for DeviceStatus
impl Unpin for DeviceStatus
impl UnwindSafe for DeviceStatus
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