Struct MpscIdleTaskQueue
pub struct MpscIdleTaskQueue { /* private fields */ }Expand description
默认空闲来源的唯一管理对象,Send+Sync,不可克隆(Clone)。
来源独立于普通外部任务队列(external task queue);释放即停收并接续全部剩余责任, 不等所有共享句柄释放。每步清理有限,用户析构(drop)本身不承诺固定耗时。
Implementations§
§impl MpscIdleTaskQueue
impl MpscIdleTaskQueue
pub fn new(options: MpscQueueOptions) -> Result<Self>
pub fn new(options: MpscQueueOptions) -> Result<Self>
创建独立来源,复用默认64/3选项;不创建业务任务或轮询异步计算(Future)。
一次准备原生stub、取消检查终点和全量清理终点,三者分别配对释放。 显式节点分配失败保原报告(Report);标准共享分配遵守分配器失败策略。 逻辑数量上限usize::MAX >> 4;正常提交/旋转不增加每任务分配。
Trait Implementations§
§impl Drop for MpscIdleTaskQueue
impl Drop for MpscIdleTaskQueue
§impl IdleQueueManager for MpscIdleTaskQueue
impl IdleQueueManager for MpscIdleTaskQueue
§fn clear(&mut self) -> Result<QueueCleanupProgress>
fn clear(&mut self) -> Result<QueueCleanupProgress>
固定本次清理终点并有限推进;不停止并发新接收,重复调用继续原范围。
§fn close(&mut self) -> Result<QueueCleanupProgress>
fn close(&mut self) -> Result<QueueCleanupProgress>
永久停收并接续全部旧责任;幂等,不以最后句柄释放或原Future析构确认为结束条件。
§type Handle = MpscIdleTaskQueueHandle
type Handle = MpscIdleTaskQueueHandle
同一来源的普通访问对象;克隆(Clone)不产生新来源或管理权限。
Auto Trait Implementations§
impl !RefUnwindSafe for MpscIdleTaskQueue
impl !UnwindSafe for MpscIdleTaskQueue
impl Forget for MpscIdleTaskQueue
impl Freeze for MpscIdleTaskQueue
impl Move for MpscIdleTaskQueue
impl Send for MpscIdleTaskQueue
impl Sync for MpscIdleTaskQueue
impl Unpin for MpscIdleTaskQueue
impl UnsafeUnpin for MpscIdleTaskQueue
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