pub enum Step {
CallModel(Box<CallModel>),
CallDecision(Box<CallDecision>),
Done(Box<RoutingOutcome>),
}Expand description
Work requests and the terminal outcome of Algorithm::run_stream.
Each call carries its own reply channel, so the host can execute calls concurrently.
Variants§
CallModel(Box<CallModel>)
The algorithm needs this model call performed. The host serves it and fulfills
it with CallModel::respond. Boxed: it is by far the largest variant.
CallDecision(Box<CallDecision>)
The host fulfills this decision call with CallDecision::respond.
Done(Box<RoutingOutcome>)
The algorithm finished with its routing outcome — the last step of a run.
Auto Trait Implementations§
impl !RefUnwindSafe for Step
impl !Sync for Step
impl !UnwindSafe for Step
impl Freeze for Step
impl Send for Step
impl Unpin for Step
impl UnsafeUnpin for Step
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