pub enum TimerStart {
Retained {
initial: Option<TimerSchedule>,
},
RemoveWhenStopped {
initial: TimerSchedule,
},
}Expand description
Initial schedule and declaration retention for a direct registration.
Retained declarations may start inactive. A declaration removed when stopped always starts with a schedule; all three registration policies use this same configuration. Durations and deadlines are checked when registering.
A remove-on-stop declaration cannot start inactive:
ⓘ
use ic_timers::TimerStart;
let start = TimerStart::RemoveWhenStopped { initial: None };Variants§
Retained
Keep callback authority after stopping, optionally starting scheduled.
Fields
§
initial: Option<TimerSchedule>Initial wake-up, or None for an inactive declaration.
RemoveWhenStopped
Start scheduled and remove callback authority after stopping.
Fields
§
initial: TimerScheduleRequired initial wake-up.
Trait Implementations§
Source§impl Clone for TimerStart
impl Clone for TimerStart
impl Copy for TimerStart
Source§impl Debug for TimerStart
impl Debug for TimerStart
impl Eq for TimerStart
Source§impl PartialEq for TimerStart
impl PartialEq for TimerStart
impl StructuralPartialEq for TimerStart
Auto Trait Implementations§
impl Freeze for TimerStart
impl RefUnwindSafe for TimerStart
impl Send for TimerStart
impl Sync for TimerStart
impl Unpin for TimerStart
impl UnsafeUnpin for TimerStart
impl UnwindSafe for TimerStart
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