pub struct GroupChild {
pub task_id: TaskId,
pub result: Option<TaskResultValue>,
}Expand description
Per-child slot inside a ResultGroup.
Records the child’s task_id and its latest known result value (if any).
Fields§
§task_id: TaskIdThe child task identifier.
result: Option<TaskResultValue>The latest known result for this child, or None if not yet reported.
Implementations§
Source§impl GroupChild
impl GroupChild
Sourcepub const fn with_result(task_id: TaskId, result: TaskResultValue) -> Self
pub const fn with_result(task_id: TaskId, result: TaskResultValue) -> Self
Create a child slot pre-populated with a result.
Sourcepub fn is_successful(&self) -> bool
pub fn is_successful(&self) -> bool
Returns true if the child reported a successful result.
Sourcepub fn is_revoked(&self) -> bool
pub fn is_revoked(&self) -> bool
Returns true if the child reported a revoked result.
Trait Implementations§
Source§impl Clone for GroupChild
impl Clone for GroupChild
Auto Trait Implementations§
impl Freeze for GroupChild
impl RefUnwindSafe for GroupChild
impl Send for GroupChild
impl Sync for GroupChild
impl Unpin for GroupChild
impl UnsafeUnpin for GroupChild
impl UnwindSafe for GroupChild
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