pub struct Notified<'ctx> { /* private fields */ }Expand description
A future that resolves once EventLoop::notify has been called.
Notifications don’t queue up: any number of notify() calls made before the future is polled
resolve it only once.
Only one task can wait for a notification at a time.
Trait Implementations§
Auto Trait Implementations§
impl<'ctx> !RefUnwindSafe for Notified<'ctx>
impl<'ctx> !Send for Notified<'ctx>
impl<'ctx> !Sync for Notified<'ctx>
impl<'ctx> !UnwindSafe for Notified<'ctx>
impl<'ctx> Forget for Notified<'ctx>
impl<'ctx> Freeze for Notified<'ctx>
impl<'ctx> Move for Notified<'ctx>
impl<'ctx> Unpin for Notified<'ctx>
impl<'ctx> UnsafeUnpin for Notified<'ctx>
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