Enum native_timer::CallbackHint
source · pub enum CallbackHint {
QuickFunction,
SlowFunction(Duration),
}
Expand description
Scheduler hint about the callback function.
Variants§
QuickFunction
The callback function execution is quick. The scheduler may use a common timer thread for executing the function.
SlowFunction(Duration)
The callback function execution takes time. The schedule may create a dedicated thread for the function. The longest execution time expected should be supplied in the first parameter.
Trait Implementations§
source§impl Clone for CallbackHint
impl Clone for CallbackHint
source§fn clone(&self) -> CallbackHint
fn clone(&self) -> CallbackHint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more