Struct TaskBatch
pub struct TaskBatch { /* private fields */ }Expand description
持有按获取顺序排列的一批唯一Runnable;不复制任务(Task)。
Implementations§
§impl TaskBatch
impl TaskBatch
pub fn from_tasks(tasks: VecDeque<Runnable>) -> Self
pub fn from_tasks(tasks: VecDeque<Runnable>) -> Self
接管已有序列,不排序、不轮询(poll),不新增每任务节点分配。
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskBatch
impl !UnwindSafe for TaskBatch
impl Forget for TaskBatch
impl Freeze for TaskBatch
impl Move for TaskBatch
impl Send for TaskBatch
impl Sync for TaskBatch
impl Unpin for TaskBatch
impl UnsafeUnpin for TaskBatch
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