pub struct WeightedWorkItem {
pub id: usize,
pub cost: u64,
}Expand description
One pending unit of GPU work.
Fields§
§id: usizeStable work identifier used by callers to map results back.
cost: u64Relative cost estimate. Zero-cost work is rejected because it cannot contribute to a meaningful load balance.
Trait Implementations§
Source§impl Clone for WeightedWorkItem
impl Clone for WeightedWorkItem
Source§fn clone(&self) -> WeightedWorkItem
fn clone(&self) -> WeightedWorkItem
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 moreSource§impl Debug for WeightedWorkItem
impl Debug for WeightedWorkItem
impl Eq for WeightedWorkItem
Source§impl PartialEq for WeightedWorkItem
impl PartialEq for WeightedWorkItem
impl StructuralPartialEq for WeightedWorkItem
Auto Trait Implementations§
impl Freeze for WeightedWorkItem
impl RefUnwindSafe for WeightedWorkItem
impl Send for WeightedWorkItem
impl Sync for WeightedWorkItem
impl Unpin for WeightedWorkItem
impl UnsafeUnpin for WeightedWorkItem
impl UnwindSafe for WeightedWorkItem
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.