Enum delay_timer::timer::timer_core::TimerEvent[][src]

pub enum TimerEvent {
    StopTimer,
    AddTask(Box<Task>),
    InsertTask(Box<Task>, TaskInstancesChainMaintainer),
    UpdateTask(Box<Task>),
    RemoveTask(u64),
    CancelTask(u64i64),
    TimeoutTask(u64i64),
    FinishTask(FinishTaskBody),
    AppendTaskHandle(u64, DelayTaskHandlerBox),
    AdvanceTask(u64),
}
Expand description

Event for Timer Wheel Core.

Variants

StopTimer
Expand description

Stop the Timer.

AddTask(Box<Task>)
Expand description

Add a new Task.

InsertTask(Box<Task>, TaskInstancesChainMaintainer)
Expand description

Insert a new Task. Maintain a state that is transparent to the user, such as the end of a task running instance.

UpdateTask(Box<Task>)
Expand description

Update a Task in Timer .

RemoveTask(u64)
Expand description

Remove a Task in Timer .

CancelTask(u64i64)
Expand description

Cancel a Task running instance in Timer .

TimeoutTask(u64i64)
Expand description

Cancel a timeout Task running instance in Timer .

FinishTask(FinishTaskBody)
Expand description

Finished a Task running instance in Timer .

AppendTaskHandle(u64, DelayTaskHandlerBox)
Expand description

Append a new instance of a running task .

AdvanceTask(u64)
Expand description

Take the initiative to perform once Task.

Trait Implementations

impl Debug for TimerEvent[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl TryFrom<&'_ TimerEvent> for PublicEvent[src]

This is supported on crate feature status-report only.

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(timer_event: &TimerEvent) -> Result<Self, Self::Error>[src]

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.