Struct delay_timer_wf::timer::task::Task
source · pub struct Task {
pub task_id: u64,
/* private fields */
}Expand description
Periodic Task Structures.
Fields§
§task_id: u64Unique task-id.
Implementations§
source§impl Task
impl Task
sourcepub fn get_maximum_running_time(&self, start_time: u64) -> Option<u64>
pub fn get_maximum_running_time(&self, start_time: u64) -> Option<u64>
Get the maximum running time of the task.
sourcepub fn check_arrived(&mut self) -> bool
pub fn check_arrived(&mut self) -> bool
check if task has arrived.
sourcepub fn is_already(&self) -> bool
pub fn is_already(&self) -> bool
check if task has already.
sourcepub fn is_can_running(&self) -> bool
pub fn is_can_running(&self) -> bool
check if task has runnable status.
sourcepub fn get_next_exec_timestamp(&mut self) -> Option<u64>
pub fn get_next_exec_timestamp(&mut self) -> Option<u64>
get_next_exec_timestamp
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl !UnwindSafe for Task
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