pub struct Report {
pub level: u8,
pub charging_status: Option<u8>,
pub rechargeable: Option<bool>,
pub backup: Option<bool>,
pub overheating: Option<bool>,
pub low_fluid: Option<bool>,
pub replace_recharge: Option<u8>,
pub low_temperature: Option<bool>,
pub disconnected: Option<bool>,
}Expand description
Battery Report (0x80 0x03).
Fields§
§level: u8The level field.
charging_status: Option<u8>The charging_status field (bits 6..8).
rechargeable: Option<bool>The rechargeable field (bits 5..6).
backup: Option<bool>The backup field (bits 4..5).
overheating: Option<bool>The overheating field (bits 3..4).
low_fluid: Option<bool>The low_fluid field (bits 2..3).
replace_recharge: Option<u8>The replace_recharge field (bits 0..2).
low_temperature: Option<bool>The low_temperature field (bits 1..2).
disconnected: Option<bool>The disconnected field (bits 0..1).
Implementations§
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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