Struct celery::beat::LocalSchedulerBackend
source · pub struct LocalSchedulerBackend {}
Expand description
The default SchedulerBackend
.
Implementations§
Trait Implementations§
source§impl SchedulerBackend for LocalSchedulerBackend
impl SchedulerBackend for LocalSchedulerBackend
source§fn should_sync(&self) -> bool
fn should_sync(&self) -> bool
Check whether the internal state of the scheduler should be synchronized.
If this method returns
true
, then sync
will be called as soon as possible.source§fn sync(
&mut self,
scheduled_tasks: &mut BinaryHeap<ScheduledTask>
) -> Result<(), BeatError>
fn sync( &mut self, scheduled_tasks: &mut BinaryHeap<ScheduledTask> ) -> Result<(), BeatError>
Synchronize the internal state of the scheduler. Read more
Auto Trait Implementations§
impl RefUnwindSafe for LocalSchedulerBackend
impl Send for LocalSchedulerBackend
impl Sync for LocalSchedulerBackend
impl Unpin for LocalSchedulerBackend
impl UnwindSafe for LocalSchedulerBackend
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