pub struct Task {
pub task_id: u64,
/* private fields */
}
Expand description
Periodic Task Structures.
Fields§
§task_id: u64
Unique 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 Freeze for Task
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