pub struct LiveTask {
pub task: Task,
pub lease_start: Option<Instant>,
}Expand description
In-memory task with a lease timestamp for TTL tracking.
The lease_start field is Instant-based (monotonic) and is NOT
serialized — on load from disk, it is set to Instant::now() for
claimed/planned/approved tasks.
Fields§
§task: Task§lease_start: Option<Instant>Implementations§
Auto Trait Implementations§
impl Freeze for LiveTask
impl RefUnwindSafe for LiveTask
impl Send for LiveTask
impl Sync for LiveTask
impl Unpin for LiveTask
impl UnsafeUnpin for LiveTask
impl UnwindSafe for LiveTask
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