pub(super) struct StatWeightsRuntime {
queue: VecDeque<PlannedChunk>,
runs: Vec<AggregateRun>,
runs_completed: u32,
}Fields§
§queue: VecDeque<PlannedChunk>§runs: Vec<AggregateRun>§runs_completed: u32Implementations§
Source§impl StatWeightsRuntime
impl StatWeightsRuntime
Sourcepub(super) fn new(runs: &[(u64, Vec<u32>)]) -> Self
pub(super) fn new(runs: &[(u64, Vec<u32>)]) -> Self
Build from (tag, chunk_iterations) runs; tag 0 is the full-fidelity baseline.
pub(super) fn next_work( &mut self, max_items: usize, next_item_id: &mut u64, ) -> Vec<RuntimeWorkItem>
pub(super) fn ingest( &mut self, results: &[RuntimeWorkResult], ) -> Result<(), StrategyError>
pub(super) fn is_complete(&self) -> bool
pub(super) fn has_pending(&self) -> bool
pub(super) fn peek_shape(&self) -> (u32, bool)
pub(super) fn finalize(&self) -> Result<FinalOutput, StrategyError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatWeightsRuntime
impl RefUnwindSafe for StatWeightsRuntime
impl Send for StatWeightsRuntime
impl Sync for StatWeightsRuntime
impl Unpin for StatWeightsRuntime
impl UnsafeUnpin for StatWeightsRuntime
impl UnwindSafe for StatWeightsRuntime
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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