pub struct ReadingWaiter { /* private fields */ }Expand description
Future returned by Sensor::wait_for_reading().
Implementations§
Source§impl ReadingWaiter
impl ReadingWaiter
Sourcepub fn new(fut: ReceiveFuture<'static, ReadingResult<Samples>>) -> Self
pub fn new(fut: ReceiveFuture<'static, ReadingResult<Samples>>) -> Self
Sourcepub fn new_err(err: ReadingError) -> Self
pub fn new_err(err: ReadingError) -> Self
Trait Implementations§
Source§impl Future for ReadingWaiter
impl Future for ReadingWaiter
Auto Trait Implementations§
impl Freeze for ReadingWaiter
impl !RefUnwindSafe for ReadingWaiter
impl Send for ReadingWaiter
impl Sync for ReadingWaiter
impl Unpin for ReadingWaiter
impl !UnwindSafe for ReadingWaiter
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more