pub struct PriorityWorkItem<T> {
pub data: T,
pub priority: u32,
pub estimated_cost: Duration,
pub dependencies: Vec<usize>,
pub task_id: usize,
}
Expand description
Work item with priority for the advanced scheduler
Fields§
§data: T
§priority: u32
§estimated_cost: Duration
§dependencies: Vec<usize>
§task_id: usize
Trait Implementations§
Source§impl<T: Clone> Clone for PriorityWorkItem<T>
impl<T: Clone> Clone for PriorityWorkItem<T>
Source§fn clone(&self) -> PriorityWorkItem<T>
fn clone(&self) -> PriorityWorkItem<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for PriorityWorkItem<T>
impl<T: Debug> Debug for PriorityWorkItem<T>
Source§impl<T> Ord for PriorityWorkItem<T>
impl<T> Ord for PriorityWorkItem<T>
Source§impl<T> PartialEq for PriorityWorkItem<T>
impl<T> PartialEq for PriorityWorkItem<T>
Source§impl<T> PartialOrd for PriorityWorkItem<T>
impl<T> PartialOrd for PriorityWorkItem<T>
impl<T> Eq for PriorityWorkItem<T>
Auto Trait Implementations§
impl<T> Freeze for PriorityWorkItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for PriorityWorkItem<T>where
T: RefUnwindSafe,
impl<T> Send for PriorityWorkItem<T>where
T: Send,
impl<T> Sync for PriorityWorkItem<T>where
T: Sync,
impl<T> Unpin for PriorityWorkItem<T>where
T: Unpin,
impl<T> UnwindSafe for PriorityWorkItem<T>where
T: UnwindSafe,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more