Struct mio_misc::scheduler::NotificationScheduler [−][src]
pub struct NotificationScheduler { /* fields omitted */ }
Expand description
Schedules notification deliveries
Implementations
Creates a new scheduler that uses the provided notifier to deliver notifications
pub fn notify_with_fixed_interval<I: Into<Option<Duration>>>(
&self,
id: NotificationId,
interval: Duration,
initial_delay: I,
name: Option<String>
) -> ScheduleEntryId where
I: Into<Option<Duration>>,
pub fn notify_with_fixed_interval<I: Into<Option<Duration>>>(
&self,
id: NotificationId,
interval: Duration,
initial_delay: I,
name: Option<String>
) -> ScheduleEntryId where
I: Into<Option<Duration>>,
Schedules recurring notification deliveries with fixed intervals
pub fn notify_once_after_delay(
&self,
id: NotificationId,
delay: Duration,
name: Option<String>
) -> ScheduleEntryId
pub fn notify_once_after_delay(
&self,
id: NotificationId,
delay: Duration,
name: Option<String>
) -> ScheduleEntryId
Schedules a one-time notification delivery
Cancels future notification(s)