pub struct WakeUpSource {
pub free_fall_event: bool,
pub sleep_event: bool,
pub wake_up_event: bool,
pub x_wake_up_event: bool,
pub y_wake_up_event: bool,
pub z_wake_up_event: bool,
}Expand description
Wake-up source
Fields§
§free_fall_event: boolFree-fall event detection status
false: no free-fall event detected
true: free-fall event detected
sleep_event: boolSleep event status
false: no sleep event detected
true: sleep event detected
wake_up_event: boolWake up event detection
false: no wake-up event detected
true: wake-up event detected
x_wake_up_event: boolX-axis wake-up event detection
false: no wake-up event detected
true: wake-up event on X-axis detected
y_wake_up_event: boolY-axis wake-up event detection
false: no wake-up event detected
true: wake-up event on Y-axis detected
z_wake_up_event: boolZ-axis wake-up event detection
false: no wake-up event detected
true: wake-up event on Z-axis detected
Trait Implementations§
source§impl Clone for WakeUpSource
impl Clone for WakeUpSource
source§fn clone(&self) -> WakeUpSource
fn clone(&self) -> WakeUpSource
Returns a copy of the value. Read more
1.6.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 WakeUpSource
impl Debug for WakeUpSource
source§impl From<u8> for WakeUpSource
impl From<u8> for WakeUpSource
impl Copy for WakeUpSource
Auto Trait Implementations§
impl Freeze for WakeUpSource
impl RefUnwindSafe for WakeUpSource
impl Send for WakeUpSource
impl Sync for WakeUpSource
impl Unpin for WakeUpSource
impl UnwindSafe for WakeUpSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)