pub struct QueueScheduler { /* private fields */ }Expand description
Queue-based scheduler for time-skipping mode.
Executes functions sequentially in FIFO order, ignoring timestamps. This is used when time skipping is enabled to process operations as quickly as possible without waiting for actual time to pass.
Implementations§
Trait Implementations§
Source§impl Default for QueueScheduler
impl Default for QueueScheduler
Source§impl Scheduler for QueueScheduler
impl Scheduler for QueueScheduler
Source§fn schedule_function(
&mut self,
start_invocation: BoxedAsyncFn,
on_error: ErrorHandler,
timestamp: Option<DateTime<Utc>>,
update_checkpoint: Option<CheckpointUpdateFn>,
)
fn schedule_function( &mut self, start_invocation: BoxedAsyncFn, on_error: ErrorHandler, timestamp: Option<DateTime<Utc>>, update_checkpoint: Option<CheckpointUpdateFn>, )
Schedule a function to be executed. Read more
Source§fn has_scheduled_function(&self) -> bool
fn has_scheduled_function(&self) -> bool
Check if there are scheduled functions pending.
Source§fn flush_timers(&mut self)
fn flush_timers(&mut self)
Flush all scheduled functions without executing them.
Auto Trait Implementations§
impl Freeze for QueueScheduler
impl !RefUnwindSafe for QueueScheduler
impl Send for QueueScheduler
impl !Sync for QueueScheduler
impl Unpin for QueueScheduler
impl UnsafeUnpin for QueueScheduler
impl !UnwindSafe for QueueScheduler
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 moreCreates a shared type from an unshared type.