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

pub struct TimerFlags { /* fields omitted */ }

Describes timer flags

Methods

impl TimerFlags[src]

pub fn new() -> Self[src]

Creates new instance of default flags

pub fn on_timer_thread(self) -> Self[src]

The callback function is invoked by the timer thread itself.

This flag should be used only for short tasks or it could affect other timer operations.

pub fn on_persist(self) -> Self[src]

The callback function is queued to a thread that never terminates.

It does not guarantee that the same thread is used each time. This flag should be used only for short tasks or it could affect other timer operations.

pub fn long_fn(self) -> Self[src]

The callback function can perform a long wait.

This flag helps the system to decide if it should create a new thread.

pub fn only_once(self) -> Self[src]

The timer will be set to the signaled state only once.

If this flag is set, the Period parameter must not be set.

pub fn transfer_impersonation(self) -> Self[src]

Callback functions will use the current access token, whether it is a process or impersonation token.

If this flag is not specified, callback functions execute only with the process token.

Trait Implementations

impl Copy for TimerFlags[src]

impl Clone for TimerFlags[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for TimerFlags

impl Sync for TimerFlags

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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]