pub struct RedisSchedulerBackend { /* private fields */ }
Implementations§
Source§impl RedisSchedulerBackend
impl RedisSchedulerBackend
pub fn new(config: RedisBackendConfig) -> Result<Self, BeatError>
Trait Implementations§
Source§impl SchedulerBackend for RedisSchedulerBackend
impl SchedulerBackend for RedisSchedulerBackend
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
Source§fn as_distributed(&mut self) -> Option<&mut dyn DistributedScheduler>
fn as_distributed(&mut self) -> Option<&mut dyn DistributedScheduler>
Return a mutable reference to the distributed capability of this backend, if any. Read more
Auto Trait Implementations§
impl Freeze for RedisSchedulerBackend
impl RefUnwindSafe for RedisSchedulerBackend
impl Send for RedisSchedulerBackend
impl Sync for RedisSchedulerBackend
impl Unpin for RedisSchedulerBackend
impl UnwindSafe for RedisSchedulerBackend
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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