Struct delay_timer::timer::task::Task[][src]

pub struct Task {
    pub task_id: u64,
    // some fields omitted
}

Fields

task_id: u64

Unique task-id.

Implementations

impl Task[src]

pub fn get_maximum_running_time(&self, start_time: u64) -> Option<u64>[src]

pub fn check_arrived(&mut self) -> bool[src]

check if task has arrived.

pub fn is_already(&self) -> bool[src]

check if task has already.

pub fn is_can_running(&self) -> bool[src]

check if task has runable status.

pub fn is_valid(&self) -> bool[src]

check if task has valid status.

pub fn get_next_exec_timestamp(&mut self) -> u64[src]

get_next_exec_timestamp

Trait Implementations

impl Debug for Task[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.