Struct windows_win::raw::timer::TimerFlags
source · pub struct TimerFlags { /* private fields */ }
Expand description
Describes timer flags
Implementations§
source§impl TimerFlags
impl TimerFlags
sourcepub fn on_timer_thread(self) -> Self
pub fn on_timer_thread(self) -> Self
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.
sourcepub fn on_persist(self) -> Self
pub fn on_persist(self) -> Self
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.
sourcepub fn long_fn(self) -> Self
pub fn long_fn(self) -> Self
The callback function can perform a long wait.
This flag helps the system to decide if it should create a new thread.
sourcepub fn only_once(self) -> Self
pub fn only_once(self) -> Self
The timer will be set to the signaled state only once.
If this flag is set, the Period parameter must not be set.
sourcepub fn transfer_impersonation(self) -> Self
pub fn transfer_impersonation(self) -> Self
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§
source§impl Clone for TimerFlags
impl Clone for TimerFlags
source§fn clone(&self) -> TimerFlags
fn clone(&self) -> TimerFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more