pub struct Coop<F: Future> { /* 私有字段 */ }展开描述
由 cooperative 创建的用于确保协作调度的 future 包装器。
trait 实现§
源代码§impl<F: Future> Future for Coop<F>
Available on crate features fs or io-std or net or process or rt or signal or sync or time only.
impl<F: Future> Future for Coop<F>
Available on crate features
fs or io-std or net or process or rt or signal or sync or time only.impl<'__pin, F: Future> Unpin for Coop<F>where
PinnedFieldsOf<__Origin<'__pin, F>>: Unpin,
自动 trait 实现§
impl<F> Freeze for Coop<F>where
F: Freeze,
impl<F> RefUnwindSafe for Coop<F>where
F: RefUnwindSafe,
impl<F> Send for Coop<F>where
F: Send,
impl<F> Sync for Coop<F>where
F: Sync,
impl<F> UnsafeUnpin for Coop<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Coop<F>where
F: UnwindSafe,
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. 更多信息