Skip to main content

QueueCleanupProgress

Enum QueueCleanupProgress 

pub enum QueueCleanupProgress {
    Complete,
    MoreWork,
}
Expand description

一次有限清理操作的进度;不向调用者交出待清理原值。

队列(queue)负责移除原内容、在合法线程(thread)清理或移交,并维护自己的状态和数量。 MoreWork表示本次明确范围尚有责任,仍由来源保管,调用者可随后继续同一操作。 Complete只确认对应范围的来源责任完成或合法移交,不确认原异步计算(Future) 已析构(drop)、任务(Task)全部退出、其它句柄(handle)已释放或整个运行时(runtime)已关闭。 开放清理、取消(cancellation)清理和关闭范围不同,不能互相代替完成证明。

Variants§

§

Complete

当前清理范围已处理完;关闭操作还须已完成或移交该来源的全部关闭责任。

§

MoreWork

当前范围仍有待处理责任;不要求本次已经取得或清理任何原值。

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> OpaqueAttachment for T
where T: Send + Sync + 'static,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.