Enum QueueSelection
pub enum QueueSelection {
Serial(SerialQueueIndex),
Parallel(TaskWeight),
}Expand description
选择权重队列(weighted queue)中的串行队列或并行档位。
Variants§
Serial(SerialQueueIndex)
指定串行队列(serial queue)。前项计算退出前,同组仍可继续接收任务。
Parallel(TaskWeight)
指定并行队列(parallel queue)的档位。权重影响原生取出概率。
Trait Implementations§
§impl Clone for QueueSelection
impl Clone for QueueSelection
impl Copy for QueueSelection
§impl Debug for QueueSelection
impl Debug for QueueSelection
impl Eq for QueueSelection
§impl PartialEq for QueueSelection
impl PartialEq for QueueSelection
impl StructuralPartialEq for QueueSelection
Auto Trait Implementations§
impl Forget for QueueSelection
impl Freeze for QueueSelection
impl Move for QueueSelection
impl RefUnwindSafe for QueueSelection
impl Send for QueueSelection
impl Sync for QueueSelection
impl Unpin for QueueSelection
impl UnsafeUnpin for QueueSelection
impl UnwindSafe for QueueSelection
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