pub struct TaskRoutingContext<'a> {
pub task_ctx: Arc<TaskContext>,
pub plan: &'a Arc<dyn ExecutionPlan>,
pub task_count: usize,
pub available_urls: &'a [Url],
}Expand description
Context usable for routing tasks to worker URLs.
Fields§
§task_ctx: Arc<TaskContext>The task context active at routing time.
plan: &'a Arc<dyn ExecutionPlan>The head execution plan of the stage being routed.
task_count: usizeThe number of tasks to be assigned.
available_urls: &'a [Url]Contains a list of URLs representing machines available to receive a task. These URLs are sourced at execution time and thus should closely reflect the real state of the cluster.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TaskRoutingContext<'a>
impl<'a> !UnwindSafe for TaskRoutingContext<'a>
impl<'a> Freeze for TaskRoutingContext<'a>
impl<'a> Send for TaskRoutingContext<'a>
impl<'a> Sync for TaskRoutingContext<'a>
impl<'a> Unpin for TaskRoutingContext<'a>
impl<'a> UnsafeUnpin for TaskRoutingContext<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request