Struct brane_exe::dummy::DummyPlanner
source · pub struct DummyPlanner;
Expand description
Defines a Dummy planner that simply assigns ‘localhost’ to every task it can find.
Implementations§
source§impl DummyPlanner
impl DummyPlanner
sourcepub fn plan(
state_results: &mut HashMap<String, String>,
workflow: Workflow,
) -> Workflow
pub fn plan( state_results: &mut HashMap<String, String>, workflow: Workflow, ) -> Workflow
Plans the given workflow by assigning localhost
to every task it can find.
§Arguments
state_results
: A map of addition intermediate results declared in a previous snippet.workflow
: The Workflow to plan.
§Returns
The same workflow, but now with planned locations.
§Panics
This function panics if the workflow was malformed somehow.
Auto Trait Implementations§
impl Freeze for DummyPlanner
impl RefUnwindSafe for DummyPlanner
impl Send for DummyPlanner
impl Sync for DummyPlanner
impl Unpin for DummyPlanner
impl UnwindSafe for DummyPlanner
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> 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