pub enum SchedulerStatus {
Unavailable,
Active(InstalledSchedulerBox),
Stale(InstalledSchedulerPoolArc, ResultWithTimings),
}
Variants§
Unified scheduler is disabled or installed scheduler is consumed by wait_for_termination(). Note that transition to Unavailable from {Active, Stale} is one-way (i.e. one-time). Also, this variant is transiently used as a placeholder internally when transitioning scheduler statuses, which isn’t observable unless panic is happening.
Active(InstalledSchedulerBox)
Scheduler is installed into a bank; could be running or just be idling. This will be transitioned to Stale after certain time has passed if its bank hasn’t been frozen.
Stale(InstalledSchedulerPoolArc, ResultWithTimings)
Scheduler is idling for long time, returning scheduler back to the pool. This will be immediately (i.e. transaparently) transitioned to Active as soon as there’s new transaction to be executed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchedulerStatus
impl !RefUnwindSafe for SchedulerStatus
impl Send for SchedulerStatus
impl Sync for SchedulerStatus
impl Unpin for SchedulerStatus
impl !UnwindSafe for SchedulerStatus
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more