[−][src]Struct windows_win::raw::timer::QueueTimer
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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,