pub struct ActiveTask {
pub id: Uuid,
pub target: UnixNanos,
pub timeout: TimeoutPolicy,
}Expand description
A task that is not finished and not pending anymore.
It is used to keep track of timeouts for tasks that are already running when the scheduler starts.
Fields§
§id: UuidThe task’s ID.
target: UnixNanosThe task’s target timestamp.
timeout: TimeoutPolicyThe task’s timeout policy.
Trait Implementations§
Source§impl Clone for ActiveTask
impl Clone for ActiveTask
Source§fn clone(&self) -> ActiveTask
fn clone(&self) -> ActiveTask
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActiveTask
impl Debug for ActiveTask
Source§impl From<PendingTask> for ActiveTask
impl From<PendingTask> for ActiveTask
Source§fn from(value: PendingTask) -> Self
fn from(value: PendingTask) -> Self
Converts to this type from the input type.
impl Copy for ActiveTask
Auto Trait Implementations§
impl Freeze for ActiveTask
impl RefUnwindSafe for ActiveTask
impl Send for ActiveTask
impl Sync for ActiveTask
impl Unpin for ActiveTask
impl UnwindSafe for ActiveTask
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