pub struct SystemStateEvent {
pub timestamp_ms: i64,
pub battery_pct: Option<u8>,
pub is_charging: bool,
pub network: NetworkType,
pub ringer_mode: RingerMode,
pub location_type: LocationType,
pub headphone_connected: bool,
pub bluetooth_connected: bool,
}Fields§
§timestamp_ms: i64§battery_pct: Option<u8>§is_charging: bool§network: NetworkType§ringer_mode: RingerMode§location_type: LocationType§headphone_connected: bool§bluetooth_connected: boolTrait Implementations§
Source§impl Clone for SystemStateEvent
impl Clone for SystemStateEvent
Source§fn clone(&self) -> SystemStateEvent
fn clone(&self) -> SystemStateEvent
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 SystemStateEvent
impl Debug for SystemStateEvent
Source§impl<'de> Deserialize<'de> for SystemStateEvent
impl<'de> Deserialize<'de> for SystemStateEvent
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
Source§impl PartialEq for SystemStateEvent
impl PartialEq for SystemStateEvent
Source§impl Serialize for SystemStateEvent
impl Serialize for SystemStateEvent
impl Eq for SystemStateEvent
impl StructuralPartialEq for SystemStateEvent
Auto Trait Implementations§
impl Freeze for SystemStateEvent
impl RefUnwindSafe for SystemStateEvent
impl Send for SystemStateEvent
impl Sync for SystemStateEvent
impl Unpin for SystemStateEvent
impl UnsafeUnpin for SystemStateEvent
impl UnwindSafe for SystemStateEvent
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