pub struct SchedulingContext { /* private fields */ }Expand description
A small context to propagate a bank and its scheduling mode to the scheduler subsystem.
Note that this isn’t called SchedulerContext because the contexts aren’t associated with
schedulers one by one. A scheduler will use many SchedulingContexts during its lifetime.
“Scheduling” part of the context name refers to an abstract slice of time to schedule and
execute all transactions for a given bank for block verification or production. A context is
expected to be used by a particular scheduler only for that duration of the time and to be
disposed by the scheduler. Then, the scheduler may work on different banks with new
SchedulingContexts.
There’s a special construction only used for scheduler preallocation, which has no bank. Panics will be triggered when tried to be used normally across code-base.
Implementations§
Trait Implementations§
Source§impl Clone for SchedulingContext
impl Clone for SchedulingContext
Source§fn clone(&self) -> SchedulingContext
fn clone(&self) -> SchedulingContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SchedulingContext
impl !RefUnwindSafe for SchedulingContext
impl Send for SchedulingContext
impl Sync for SchedulingContext
impl Unpin for SchedulingContext
impl !UnwindSafe for SchedulingContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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