#[repr(C)]pub union PowerEventData {
pub battery_level: u8,
}Fields§
§battery_level: u8Trait Implementations§
Source§impl Clone for PowerEventData
impl Clone for PowerEventData
Source§fn clone(&self) -> PowerEventData
fn clone(&self) -> PowerEventData
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 moreimpl Copy for PowerEventData
Auto Trait Implementations§
impl Freeze for PowerEventData
impl RefUnwindSafe for PowerEventData
impl Send for PowerEventData
impl Sync for PowerEventData
impl Unpin for PowerEventData
impl UnwindSafe for PowerEventData
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