pub struct ParallelTask {
pub task_id: usize,
pub operation: ParallelOperation,
pub estimated_work: u64,
pub priority: TaskPriority,
}Expand description
A unit of parallelisable work submitted to ParallelExecutor::execute_parallel.
This is the logical-task abstraction used by the parallel executor; it is
distinct from MatrixTask (which carries a concrete MatrixOperation).
A ParallelTask describes what to run, not where — the load balancer
decides the worker assignment.
Fields§
§task_id: usizeStable, caller-supplied task identifier.
operation: ParallelOperationThe kind of operation this task represents.
estimated_work: u64Estimated work units (e.g. microseconds). Used for accounting only; no real scheduling decision currently depends on it.
priority: TaskPriorityRelative priority of the task.
Trait Implementations§
Source§impl Clone for ParallelTask
impl Clone for ParallelTask
Source§fn clone(&self) -> ParallelTask
fn clone(&self) -> ParallelTask
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 moreAuto Trait Implementations§
impl Freeze for ParallelTask
impl RefUnwindSafe for ParallelTask
impl Send for ParallelTask
impl Sync for ParallelTask
impl Unpin for ParallelTask
impl UnsafeUnpin for ParallelTask
impl UnwindSafe for ParallelTask
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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