pub struct Notified<'a> { /* private fields */ }
Expand description
Future created from Notify::notified().
Implementations§
Source§impl<'a> Notified<'a>
impl<'a> Notified<'a>
Sourcepub fn enable(self: Pin<&mut Self>)
pub fn enable(self: Pin<&mut Self>)
Enables to wait for a notification from Notify::notify_one or Notify::notify_all.
If there is permit from Notify::notify_one, this will consume it temporarily for future polling. If this Notified is dropped without further polling, the permit will be handed over to Notify in case of no new Notify::notify_all.
Notified::poll will enable this also.
Sourcepub fn detach(self) -> Notified<'a> ⓘ
pub fn detach(self) -> Notified<'a> ⓘ
Detaches from rounds of Notify so it will not be notified until Notified::enable or Notified::poll.
Trait Implementations§
impl Send for Notified<'_>
impl Sync for Notified<'_>
Auto Trait Implementations§
impl<'a> !Freeze for Notified<'a>
impl<'a> !RefUnwindSafe for Notified<'a>
impl<'a> Unpin for Notified<'a>
impl<'a> !UnwindSafe for Notified<'a>
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