pub struct SoftCycleListener<'a, T: Payload> { /* private fields */ }Expand description
Future that completes when a notification from the associated controller is observed.
Returned by SoftCycleController::listener. Resolves to Ok(payload) when a notification
is observed. If the controller is already notified when the listener is created or first
polled, it may complete immediately with that payload. If multiple notify/clear cycles
occur after the listener is created, it returns one of those payloads (no guarantee of
returning the earliest or latest). See the crate-level documentation for full
completion guarantees.
Trait Implementations§
Source§impl<T: Payload> Future for SoftCycleListener<'_, T>
impl<T: Payload> Future for SoftCycleListener<'_, T>
Auto Trait Implementations§
impl<'a, T> !Freeze for SoftCycleListener<'a, T>
impl<'a, T> !RefUnwindSafe for SoftCycleListener<'a, T>
impl<'a, T> Send for SoftCycleListener<'a, T>
impl<'a, T> Sync for SoftCycleListener<'a, T>
impl<'a, T> !Unpin for SoftCycleListener<'a, T>
impl<'a, T> !UnsafeUnpin for SoftCycleListener<'a, T>
impl<'a, T> !UnwindSafe for SoftCycleListener<'a, T>
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