pub struct Status {
pub uptime_ms: u64,
pub ble_connected: bool,
pub mappings: u16,
pub monitor: bool,
pub learning: Option<HidKey>,
pub battery: Option<Battery>,
}Fields§
§uptime_ms: u64§ble_connected: bool§mappings: u16§monitor: bool§learning: Option<HidKey>Key currently waiting for an IR code, if learn mode is active.
battery: Option<Battery>Latest battery reading; None if the firmware has no battery
monitor or hasn’t taken a reading yet.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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