Enum QueueCleanupProgress
pub enum QueueCleanupProgress {
Complete,
MoreWork,
}Expand description
一次有限清理操作的进度;不向调用者交出待清理原值。
队列(queue)负责移除原内容、在合法线程(thread)清理或移交,并维护自己的状态和数量。
MoreWork表示本次明确范围尚有责任,仍由来源保管,调用者可随后继续同一操作。
Complete只确认对应范围的来源责任完成或合法移交,不确认原异步计算(Future)
已析构(drop)、任务(Task)全部退出、其它句柄(handle)已释放或整个运行时(runtime)已关闭。
开放清理、取消(cancellation)清理和关闭范围不同,不能互相代替完成证明。
Variants§
Auto Trait Implementations§
impl Forget for QueueCleanupProgress
impl Freeze for QueueCleanupProgress
impl Move for QueueCleanupProgress
impl RefUnwindSafe for QueueCleanupProgress
impl Send for QueueCleanupProgress
impl Sync for QueueCleanupProgress
impl Unpin for QueueCleanupProgress
impl UnsafeUnpin for QueueCleanupProgress
impl UnwindSafe for QueueCleanupProgress
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