pub struct InstancePlanner;
Expand description
The planner is in charge of assigning locations to tasks in a workflow. This one defers planning to the brane-plr
service.
Implementations§
Source§impl InstancePlanner
impl InstancePlanner
Sourcepub async fn plan(
plr: &Address,
app_id: AppId,
workflow: Workflow,
prof: ProfileScopeHandle<'_>,
) -> Result<Workflow, PlanError>
pub async fn plan( plr: &Address, app_id: AppId, workflow: Workflow, prof: ProfileScopeHandle<'_>, ) -> Result<Workflow, PlanError>
Plans the given workflow.
Will populate the planning timings in the given profile struct if the planner reports them.
§Arguments
plr
: The address of the remote planner to connect to.app_id
: The session ID for this workflow.workflow
: The Workflow to plan.prof
: The ProfileScope that can be used to provide additional information about the timings of the planning (driver-side).
§Returns
The same workflow as given, but now with all tasks and data transfers planned.
Auto Trait Implementations§
impl Freeze for InstancePlanner
impl RefUnwindSafe for InstancePlanner
impl Send for InstancePlanner
impl Sync for InstancePlanner
impl Unpin for InstancePlanner
impl UnwindSafe for InstancePlanner
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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