pub struct TaskResult<T> {
pub task_id: TaskId,
pub attempt: usize,
pub status: Status,
pub result: Result<T, String>,
}Expand description
Represents the result of a task execution
Fields§
§task_id: TaskIdThe unique identifier of the task
attempt: usizeThe most recent result
status: StatusThe status of the task
result: Result<T, String>The result of the task execution
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for TaskResult<T>
impl<T: Clone> Clone for TaskResult<T>
Source§impl<T: Debug> Debug for TaskResult<T>
impl<T: Debug> Debug for TaskResult<T>
Source§impl<'de, T> Deserialize<'de> for TaskResult<T>where
T: Deserialize<'de>,
Available on crate feature serde only.
impl<'de, T> Deserialize<'de> for TaskResult<T>where
T: Deserialize<'de>,
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for TaskResult<T>
impl<T> RefUnwindSafe for TaskResult<T>
impl<T> Send for TaskResult<T>
impl<T> Sync for TaskResult<T>
impl<T> Unpin for TaskResult<T>
impl<T> UnsafeUnpin for TaskResult<T>
impl<T> UnwindSafe for TaskResult<T>
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