pub struct FanInResult {
pub task_results: HashMap<String, Result<i64, String>>,
pub aggregated: Option<i64>,
pub elapsed: Duration,
pub success_count: usize,
pub failure_count: usize,
}Expand description
The merged result of a completed fan-in phase.
Fields§
§task_results: HashMap<String, Result<i64, String>>Individual per-task results (name → output or error).
aggregated: Option<i64>Aggregated scalar value computed by the chosen strategy.
None when the strategy could not produce a value (e.g., all tasks
failed and Sum was chosen).
elapsed: DurationTotal wall-clock duration of the fan execution.
success_count: usizeNumber of tasks that succeeded.
failure_count: usizeNumber of tasks that failed.
Implementations§
Source§impl FanInResult
impl FanInResult
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Returns true when all tasks succeeded.
Sourcepub fn any_succeeded(&self) -> bool
pub fn any_succeeded(&self) -> bool
Returns true when at least one task succeeded.
Trait Implementations§
Source§impl Clone for FanInResult
impl Clone for FanInResult
Source§fn clone(&self) -> FanInResult
fn clone(&self) -> FanInResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FanInResult
impl RefUnwindSafe for FanInResult
impl Send for FanInResult
impl Sync for FanInResult
impl Unpin for FanInResult
impl UnsafeUnpin for FanInResult
impl UnwindSafe for FanInResult
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