pub struct TaskResult<R> {
pub result: Result<R, String>,
pub elapsed: Duration,
pub attempts: u32,
}Expand description
Outcome of one task run through Cluster::execute or Cluster::run.
Fields§
§result: Result<R, String>The task’s return value, or its final error stringified after retries were exhausted.
elapsed: DurationTotal wall time across all attempts.
attempts: u32Number of attempts made (1 if it succeeded on the first try).
Implementations§
Auto Trait Implementations§
impl<R> Freeze for TaskResult<R>
impl<R> RefUnwindSafe for TaskResult<R>
impl<R> Send for TaskResult<R>
impl<R> Sync for TaskResult<R>
impl<R> Unpin for TaskResult<R>
impl<R> UnsafeUnpin for TaskResult<R>
impl<R> UnwindSafe for TaskResult<R>
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