tokio_cron_scheduler

Trait ToCode

Source
pub trait ToCode<T>
where T: Send,
{ // Required methods fn init( &mut self, context: &Context, ) -> Pin<Box<dyn Future<Output = Result<(), JobSchedulerError>> + Send>>; fn get(&mut self, uuid: Uuid) -> PinnedGetFuture<T>; }

Required Methods§

Source

fn init( &mut self, context: &Context, ) -> Pin<Box<dyn Future<Output = Result<(), JobSchedulerError>> + Send>>

Source

fn get(&mut self, uuid: Uuid) -> PinnedGetFuture<T>

Implementors§