Struct OwnedNotified
pub struct OwnedNotified { /* private fields */ }
Available on crate feature
sync only.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.
Implementations
impl OwnedNotified
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.
Trait Implementations
impl Debug for OwnedNotified
impl Drop for OwnedNotified
impl Future for OwnedNotified
impl Sync for OwnedNotified
Auto Trait Implementations
impl !Freeze for OwnedNotified
impl !RefUnwindSafe for OwnedNotified
impl !Unpin for OwnedNotified
impl !UnsafeUnpin for OwnedNotified
impl !UnwindSafe for OwnedNotified
impl Send for OwnedNotified
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<F> IntoFuture for Fwhere F: Future,
type IntoFuture = F
Which kind of future are we turning this into?
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/sync/futures/struct.OwnedNotified.html