Struct omnisensor::sensor::SensorIOTask
source · [−]struct SensorIOTask(JoinHandle<()>);
Expand description
A running task that updates a sensor’s value.
Wrapped in a struct so that we can stop it in its Drop implementation.
Tuple Fields
0: JoinHandle<()>
Trait Implementations
sourceimpl Drop for SensorIOTask
impl Drop for SensorIOTask
sourcefn drop(&mut self)
fn drop(&mut self)
Stops the contained task when the SensorIOTask
goes away.
Auto Trait Implementations
impl RefUnwindSafe for SensorIOTask
impl Send for SensorIOTask
impl Sync for SensorIOTask
impl Unpin for SensorIOTask
impl UnwindSafe for SensorIOTask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more