Enum TimerRecurrence
#[repr(i32)]pub enum TimerRecurrence {
Recurring = 0,
OneTime = 1,
}Expand description
Legacy version of enum “kanzi.MainLoopScheduler.TimerRecurrence”. Enumeration for timer recurrence options.
Variants§
Recurring = 0
Kanzi executes the timer tasks periodically at specified intervals. When a recurring timer elapses multiple times in a single iteration of the Kanzi main loop, Kanzi executes that timer only once, but provides the number of elapsed intervals through its callback interface.
OneTime = 1
Kanzi executes the timer once in a main loop iteration where the specified time since their addition has elapsed.
Implementations§
§impl TimerRecurrence
impl TimerRecurrence
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> TimerRecurrence
Trait Implementations§
§impl Clone for TimerRecurrence
impl Clone for TimerRecurrence
§fn clone(&self) -> TimerRecurrence
fn clone(&self) -> TimerRecurrence
Returns a duplicate 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§impl Debug for TimerRecurrence
impl Debug for TimerRecurrence
§impl Display for TimerRecurrence
impl Display for TimerRecurrence
§impl PartialEq for TimerRecurrence
impl PartialEq for TimerRecurrence
§impl VariantConstraint for TimerRecurrence
impl VariantConstraint for TimerRecurrence
§type DataArg<'a> = TimerRecurrence
type DataArg<'a> = TimerRecurrence
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = TimerRecurrence
type RetArg = TimerRecurrence
§fn as_arg(&self) -> <TimerRecurrence as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <TimerRecurrence as VariantConstraint>::DataArg<'_>
impl Copy for TimerRecurrence
impl Eq for TimerRecurrence
impl PropertyTypeConstraint for TimerRecurrence
impl StructuralPartialEq for TimerRecurrence
Auto Trait Implementations§
impl Freeze for TimerRecurrence
impl RefUnwindSafe for TimerRecurrence
impl Send for TimerRecurrence
impl Sync for TimerRecurrence
impl Unpin for TimerRecurrence
impl UnwindSafe for TimerRecurrence
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