pub struct OwnedNotified { /* 私有字段 */ }展开描述
从 Notify::notified_owned() 返回的 Future。
此 future 是 fused 的,因此一旦它完成,后续任何对 poll 的调用都会立即返回 Poll::Ready。
实现§
源代码§impl OwnedNotified
impl OwnedNotified
源代码pub fn enable(self: Pin<&mut Self>) -> bool
pub fn enable(self: Pin<&mut Self>) -> bool
将此 future 添加到已准备好通过调用 notify_one 接收唤醒的 future 列表中。
有关更多详细信息,请参阅 Notified::enable。
trait 实现§
自动 trait 实现§
impl !Freeze for OwnedNotified
impl !RefUnwindSafe for OwnedNotified
impl Send for OwnedNotified
impl !Unpin for OwnedNotified
impl !UnsafeUnpin for OwnedNotified
impl !UnwindSafe for OwnedNotified
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息
源代码§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
源代码§type IntoFuture = F
type IntoFuture = F
我们将要把此值转变成哪种 future?
源代码§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. 更多信息