pub struct Run<T = Vec<u8>> {
pub result: Option<TaskResult<T>>,
pub lock_at: i64,
pub lock_by: String,
pub done_at: Option<i64>,
}Expand description
Represents a run of a task
Fields§
§result: Option<TaskResult<T>>The serialized result of the run
lock_at: i64The time at which the task was locked for execution
lock_by: StringThe identifier of the worker that locked the task
done_at: Option<i64>The time at which the run was completed
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Run<T>where
T: Deserialize<'de>,
Available on crate feature serde only.
impl<'de, T> Deserialize<'de> for Run<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 Run<T>
impl<T> RefUnwindSafe for Run<T>
impl<T> Send for Run<T>
impl<T> Sync for Run<T>
impl<T> Unpin for Run<T>
impl<T> UnsafeUnpin for Run<T>
impl<T> UnwindSafe for Run<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