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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CallbackHint
impl Debug for CallbackHint
impl Copy for CallbackHint
Auto Trait Implementations§
impl Freeze for CallbackHint
impl RefUnwindSafe for CallbackHint
impl Send for CallbackHint
impl Sync for CallbackHint
impl Unpin for CallbackHint
impl UnwindSafe for CallbackHint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more