pub struct Scheduler<S, G = NoopExecutionGuard, C = NoopCoordinatedStateStore>{ /* private fields */ }Implementations§
Source§impl<S> Scheduler<S, NoopExecutionGuard, NoopCoordinatedStateStore>
impl<S> Scheduler<S, NoopExecutionGuard, NoopCoordinatedStateStore>
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, NoopCoordinatedStateStore>
impl<S, G> Scheduler<S, G, NoopCoordinatedStateStore>
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<C> Scheduler<InMemoryStateStore, NoopExecutionGuard, C>
impl<C> Scheduler<InMemoryStateStore, NoopExecutionGuard, C>
pub fn with_coordinated_state_store( config: SchedulerConfig, store: C, lease_config: CoordinatedLeaseConfig, ) -> Self
pub fn with_observer_and_coordinated_state_store<O>(
config: SchedulerConfig,
store: C,
observer: O,
lease_config: CoordinatedLeaseConfig,
) -> Selfwhere
O: SchedulerObserver,
Source§impl<S, G, C> Scheduler<S, G, C>where
S: StateStore + Send + Sync + 'static,
G: ExecutionGuard + Send + Sync + 'static,
C: CoordinatedStateStore + Send + Sync + 'static,
impl<S, G, C> Scheduler<S, G, C>where
S: StateStore + Send + Sync + 'static,
G: ExecutionGuard + Send + Sync + 'static,
C: CoordinatedStateStore + Send + Sync + 'static,
pub fn handle(&self) -> SchedulerHandle
pub async fn run<D>( &self, job: Job<D>, ) -> Result<SchedulerReport, SchedulerError>
Auto Trait Implementations§
impl<S, G, C> Freeze for Scheduler<S, G, C>
impl<S, G = NoopExecutionGuard, C = NoopCoordinatedStateStore> !RefUnwindSafe for Scheduler<S, G, C>
impl<S, G, C> Send for Scheduler<S, G, C>
impl<S, G, C> Sync for Scheduler<S, G, C>
impl<S, G, C> Unpin for Scheduler<S, G, C>
impl<S, G, C> UnsafeUnpin for Scheduler<S, G, C>
impl<S, G = NoopExecutionGuard, C = NoopCoordinatedStateStore> !UnwindSafe for Scheduler<S, G, C>
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