pub struct CancelWait { /* private fields */ }Expand description
一份惰性的取消等待异步计算(cancellation wait future),本身不是任务(Task)。 首次实际推进前可以移动(move);开始等待后实际等待者不能改变。
Trait Implementations§
§impl Drop for CancelWait
impl Drop for CancelWait
Auto Trait Implementations§
impl !RefUnwindSafe for CancelWait
impl !UnwindSafe for CancelWait
impl Forget for CancelWait
impl Freeze for CancelWait
impl Move for CancelWait
impl Send for CancelWait
impl Sync for CancelWait
impl Unpin for CancelWait
impl UnsafeUnpin for CancelWait
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