pub struct OwnedNotified {
notify: Arc<Notify>,
state: State,
notify_waiters_calls: usize,
waiter: Waiter,
}Expand description
Future returned from Notify::notified_owned().
This future is fused, so once it has completed, any future calls to poll
will immediately return Poll::Ready.
Fields§
§notify: Arc<Notify>The Notify being received on.
state: StateThe current state of the receiving process.
notify_waiters_calls: usizeNumber of calls to notify_waiters at the time of creation.
waiter: WaiterEntry in the waiter LinkedList.
Implementations§
Source§impl OwnedNotified
impl OwnedNotified
Sourcepub fn enable(self: Pin<&mut Self>) -> bool
pub fn enable(self: Pin<&mut Self>) -> bool
Adds this future to the list of futures that are ready to receive
wakeups from calls to notify_one.
See Notified::enable for more details.
Sourcefn project(self: Pin<&mut Self>) -> NotifiedProject<'_>
fn project(self: Pin<&mut Self>) -> NotifiedProject<'_>
A custom project implementation is used in place of pin-project-lite
as a custom drop implementation is needed.
fn poll_notified(self: Pin<&mut Self>, waker: Option<&Waker>) -> Poll<()>
Trait Implementations§
Source§impl Debug for OwnedNotified
impl Debug for OwnedNotified
Source§impl Drop for OwnedNotified
impl Drop for OwnedNotified
Source§impl Future for OwnedNotified
impl Future for OwnedNotified
impl Sync for OwnedNotified
Auto Trait Implementations§
impl !Freeze for OwnedNotified
impl !RefUnwindSafe for OwnedNotified
impl Send for OwnedNotified
impl !Unpin for OwnedNotified
impl !UnwindSafe for OwnedNotified
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