Struct OwnedNotified
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct OwnedNotified { /* private fields */ }
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
fn enable(self: Pin<&mut Self>) -> boolAdds this future to the list of futures that are ready to receive wakeups from calls to
notify_one.See
Notified::enablefor more details.
Trait Implementations
impl Debug for OwnedNotified
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Drop for OwnedNotified
fn drop(&mut self)
impl Future for OwnedNotified
type Output = ();fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>
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<F> IntoFuture for OwnedNotified
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<T> Any for OwnedNotified
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for OwnedNotified
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for OwnedNotified
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for OwnedNotified
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for OwnedNotified
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for OwnedNotified
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for OwnedNotified
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>