Struct async_timer::timer::PosixTimer[][src]

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

Posix Timer

When using c_wrapper feature implementation uses C shim to create timers which call callbacks from a separate thread.

Without it, callback is called from signal handler which limits usable operations within the callback.

Implementations

Creates new instance

Trait Implementations

Executes the destructor for this type. Read more

The type of value produced on completion.

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Initializes timer state, performing initial arming and allowing to access TimerState during initialization Read more

Ticks timer. Read more

Creates new instance

Returns whether timer is ongoing. Read more

Returns whether timer has expired.

Restarts timer with new timeout value.

Restarts timer with new timeout value and waker.

Cancels timer, if it is still ongoing.

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.

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

The output that the future will produce on completion.

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

Which kind of future are we turning this into?

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

Creates a future from a value.

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.