pub struct Scheduler<S, G = NoopExecutionGuard>where
S: StateStore,
G: ExecutionGuard,{ /* private fields */ }Implementations§
Source§impl<S> Scheduler<S, NoopExecutionGuard>
impl<S> Scheduler<S, NoopExecutionGuard>
pub fn new(config: SchedulerConfig, store: S) -> Self
pub fn with_log_observer(config: SchedulerConfig, store: S) -> Self
pub fn with_observer<O>(config: SchedulerConfig, store: S, observer: O) -> Selfwhere
O: SchedulerObserver,
Source§impl<S, G> Scheduler<S, G>
impl<S, G> Scheduler<S, G>
pub fn with_execution_guard(config: SchedulerConfig, store: S, guard: G) -> Self
pub fn with_observer_and_execution_guard<O>(
config: SchedulerConfig,
store: S,
observer: O,
guard: G,
) -> Selfwhere
O: SchedulerObserver,
Source§impl<S, G> Scheduler<S, G>
impl<S, G> Scheduler<S, G>
pub fn handle(&self) -> SchedulerHandle
pub async fn run<D>( &self, job: Job<D>, ) -> Result<SchedulerReport, SchedulerError>
Auto Trait Implementations§
impl<S, G> Freeze for Scheduler<S, G>
impl<S, G = NoopExecutionGuard> !RefUnwindSafe for Scheduler<S, G>
impl<S, G> Send for Scheduler<S, G>
impl<S, G> Sync for Scheduler<S, G>
impl<S, G> Unpin for Scheduler<S, G>
impl<S, G> UnsafeUnpin for Scheduler<S, G>
impl<S, G = NoopExecutionGuard> !UnwindSafe for Scheduler<S, G>
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