Struct delay_timer::entity::DelayTimer[][src]

pub struct DelayTimer { /* fields omitted */ }
Expand description

DelayTimer is an abstraction layer that helps users solve execution cycle synchronous/asynchronous tasks.

Implementations

New a DelayTimer.

Add a task in timer_core by event-channel.

Add a task in timer_core by event-channel. But it will return a handle that can constantly take out new instances of the task.

Update a task in timer_core by event-channel.

Remove a task in timer_core by event-channel.

Advance a task in timer_core by event-channel.

Cancel a task in timer_core by event-channel. Cancel is for instances derived from the task running up.

Stop DelayTimer, running tasks are not affected.

Set internal id-generator for machine_id and node_id. Add a new api in the future to support passing a custom id generator. The id-generator is mainly used for binding unique record ids to internal events, for user collection, and for tracking task dynamics.

This is supported on crate feature status-report only.

Take StatusReporter from DelayTimer, through which you can get public events.

This is supported on crate feature status-report only.

Access to public events through DelayTimer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.