[][src]Struct windows_win::raw::timer::QueueTimer

pub struct QueueTimer { /* fields omitted */ }

Timer that schedules callback on thread pool

By default Drop implementation deletes queue without waiting for callback to be finished. If you want to wait then you can use delete method.

Methods

impl QueueTimer[src]

pub unsafe fn cancel<T: CompleteEvent>(&self, _event: T) -> Result<()>[src]

Cancels timer without consuming it

User must ensure that drop is not called by forgetting timer

pub fn reset(&self, due_time: c_ulong, period: c_ulong) -> Result<()>[src]

Resets timer with new values of due_time and period

Note: if you call it on a one-shot timer (its period is zero) that has already expired, the timer is not updated.

pub fn delete<T: CompleteEvent>(self, event: T) -> Result<()>[src]

Deletes timer and consumes it.

Trait Implementations

impl Drop for QueueTimer[src]

impl Sync for QueueTimer[src]

impl Send for QueueTimer[src]

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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