pub trait Notifiable:
Sync
+ Send
+ Debug {
// Required method
fn get_schedule(&self) -> Task;
// Provided methods
fn on_time<'life0, 'async_trait>(
&'life0 self,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_skip<'life0, 'async_trait>(
&'life0 self,
_cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Expand description
a task that can be scheduled
Required Methods§
Sourcefn get_schedule(&self) -> Task
fn get_schedule(&self) -> Task
get the schedule type