Struct accelerometer::orientation::Tracker
source · pub struct Tracker<A, V>{ /* private fields */ }Expand description
Device position tracker which which filters noisy accelerometer data using statistical methods
Implementations§
source§impl<A, V, C> Tracker<A, V>
impl<A, V, C> Tracker<A, V>
sourcepub fn orientation(&mut self) -> Result<Orientation, A::Error>
pub fn orientation(&mut self) -> Result<Orientation, A::Error>
Get an orientation reading
sourcepub fn last_orientation(&self) -> Orientation
pub fn last_orientation(&self) -> Orientation
Get the last known orientation reading for the device
Auto Trait Implementations§
impl<A, V> Freeze for Tracker<A, V>where
A: Freeze,
impl<A, V> RefUnwindSafe for Tracker<A, V>where
A: RefUnwindSafe,
V: RefUnwindSafe,
impl<A, V> Send for Tracker<A, V>where
A: Send,
impl<A, V> Sync for Tracker<A, V>where
A: Sync,
impl<A, V> Unpin for Tracker<A, V>
impl<A, V> UnwindSafe for Tracker<A, V>where
A: UnwindSafe,
V: UnwindSafe,
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