pub struct StatusUpdate {
pub task_id: TaskId,
pub status: TaskState,
pub timestamp: SystemTime,
}Expand description
A buffered status update pending persistence.
Fields§
§task_id: TaskIdThe task whose status changed.
status: TaskStateThe new task status.
timestamp: SystemTimeWall-clock timestamp when the update was recorded.
Implementations§
Trait Implementations§
Source§impl Clone for StatusUpdate
impl Clone for StatusUpdate
Source§fn clone(&self) -> StatusUpdate
fn clone(&self) -> StatusUpdate
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 StatusUpdate
impl RefUnwindSafe for StatusUpdate
impl Send for StatusUpdate
impl Sync for StatusUpdate
impl Unpin for StatusUpdate
impl UnsafeUnpin for StatusUpdate
impl UnwindSafe for StatusUpdate
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