Enum QueueSelection
pub enum QueueSelection {
Serial(SerialQueueIndex),
Parallel(TaskWeight),
}Expand description
选择权重队列(weighted queue)中的串行队列或并行档位。
Variants§
Serial(SerialQueueIndex)
指定串行队列(serial queue)。前项计算退出前,同组仍可继续接收任务。
Parallel(TaskWeight)
指定并行队列(parallel queue)的档位。权重影响原生取出概率。
Trait Implementations§
Source§impl Clone for QueueSelection
impl Clone for QueueSelection
Source§fn clone(&self) -> QueueSelection
fn clone(&self) -> QueueSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueueSelection
Source§impl Debug for QueueSelection
impl Debug for QueueSelection
impl Eq for QueueSelection
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.