pub enum AutoResult {
Single(TaskResult),
Parallel(Vec<TaskResult>),
Chain(ChainResult),
}Expand description
Result of an auto-routed execution.
Variants§
Single(TaskResult)
Result from a single task.
Parallel(Vec<TaskResult>)
Results from parallel tasks.
Chain(ChainResult)
Result from a chain.
Implementations§
Source§impl AutoResult
impl AutoResult
Sourcepub fn route_name(&self) -> &'static str
pub fn route_name(&self) -> &'static str
Get the route that was chosen.
Sourcepub fn cost_microdollars(&self) -> u64
pub fn cost_microdollars(&self) -> u64
Total cost in microdollars (best-effort; chain cost may be 0 due to known tracking gap).
Trait Implementations§
Source§impl Clone for AutoResult
impl Clone for AutoResult
Source§fn clone(&self) -> AutoResult
fn clone(&self) -> AutoResult
Returns a duplicate of the value. Read more
1.0.0 · 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 AutoResult
impl RefUnwindSafe for AutoResult
impl Send for AutoResult
impl Sync for AutoResult
impl Unpin for AutoResult
impl UnsafeUnpin for AutoResult
impl UnwindSafe for AutoResult
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