pub struct SystemStatusSnapshot {
pub battery_pct: Option<u8>,
pub is_charging: bool,
pub network: NetworkType,
pub ringer_mode: RingerMode,
pub location_type: LocationType,
pub headphone_connected: bool,
}Expand description
系统状态快照
Fields§
§battery_pct: Option<u8>§is_charging: bool§network: NetworkType§ringer_mode: RingerMode§location_type: LocationType§headphone_connected: boolTrait Implementations§
Source§impl Clone for SystemStatusSnapshot
impl Clone for SystemStatusSnapshot
Source§fn clone(&self) -> SystemStatusSnapshot
fn clone(&self) -> SystemStatusSnapshot
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 SystemStatusSnapshot
impl Debug for SystemStatusSnapshot
Source§impl<'de> Deserialize<'de> for SystemStatusSnapshot
impl<'de> Deserialize<'de> for SystemStatusSnapshot
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
Auto Trait Implementations§
impl Freeze for SystemStatusSnapshot
impl RefUnwindSafe for SystemStatusSnapshot
impl Send for SystemStatusSnapshot
impl Sync for SystemStatusSnapshot
impl Unpin for SystemStatusSnapshot
impl UnsafeUnpin for SystemStatusSnapshot
impl UnwindSafe for SystemStatusSnapshot
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