pub struct TaskCancelWait<N: TaskNotifier> { /* private fields */ }Expand description
一份取消等待;额外探针只为通知核原生取消事实,不形成定时登记持有环。 首次轮询(poll)才推进原生取消等待,返回原CancellationOutcome,不把请求记录当作析构成功。 受管任务(Task)内以实际当前任务身份为准;首次挂起(Pending)后不得更换实际等待者身份,这不禁止保持身份的跨线程移动。 释放(drop)撤销本份等待登记,不撤销已记录的取消;构造和重复挂起不额外重复通知。
Trait Implementations§
§impl<N: TaskNotifier> Future for TaskCancelWait<N>
impl<N: TaskNotifier> Future for TaskCancelWait<N>
impl<N: TaskNotifier> Unpin for TaskCancelWait<N>
Auto Trait Implementations§
impl<N> !RefUnwindSafe for TaskCancelWait<N>
impl<N> !UnwindSafe for TaskCancelWait<N>
impl<N> Forget for TaskCancelWait<N>
impl<N> Freeze for TaskCancelWait<N>where
N: Freeze,
impl<N> Move for TaskCancelWait<N>
impl<N> Send for TaskCancelWait<N>
impl<N> Sync for TaskCancelWait<N>
impl<N> UnsafeUnpin for TaskCancelWait<N>where
N: UnsafeUnpin,
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