Struct ReadingWaiter
pub struct ReadingWaiter { /* private fields */ }Available on crate feature
sensors only.Expand description
Future returned by Sensor::wait_for_reading().
Implementations§
§impl ReadingWaiter
impl ReadingWaiter
pub fn new(
fut: ReceiveFuture<'static, Result<Samples, ReadingError>>,
) -> ReadingWaiter ⓘ
pub fn new( fut: ReceiveFuture<'static, Result<Samples, ReadingError>>, ) -> ReadingWaiter ⓘ
pub fn new_err(err: ReadingError) -> ReadingWaiter ⓘ
pub fn new_err(err: ReadingError) -> ReadingWaiter ⓘ
Trait Implementations§
§impl Future for ReadingWaiter
impl Future for ReadingWaiter
§type Output = Result<Samples, ReadingError>
type Output = Result<Samples, ReadingError>
The type of value produced on completion.
§fn poll(
self: Pin<&mut ReadingWaiter>,
cx: &mut Context<'_>,
) -> Poll<<ReadingWaiter as Future>::Output>
fn poll( self: Pin<&mut ReadingWaiter>, cx: &mut Context<'_>, ) -> Poll<<ReadingWaiter as Future>::Output>
Attempts to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available. Read more
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
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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