pub(super) struct TournamentRuntime {Show 16 fields
phases: Vec<Phase>,
current_phase: usize,
stage: TournamentStage,
payload_bytes: Vec<u8>,
to_test: RoaringBitmap,
phase_size: u32,
completed_in_phase: u32,
keep_count: u32,
top_k: BinaryHeap<Reverse<HeapEntry>>,
final_top: Vec<HeapEntry>,
winner_perm: Option<u32>,
winner_telemetry: Option<Vec<u8>>,
baseline_dps_x10: Option<u32>,
total_permutations: u32,
total_iterations: u64,
factorial: Option<FactorialRuntime>,
}Fields§
§phases: Vec<Phase>§current_phase: usize§stage: TournamentStage§payload_bytes: Vec<u8>§to_test: RoaringBitmap§phase_size: u32§completed_in_phase: u32§keep_count: u32§top_k: BinaryHeap<Reverse<HeapEntry>>§final_top: Vec<HeapEntry>§winner_perm: Option<u32>§winner_telemetry: Option<Vec<u8>>§baseline_dps_x10: Option<u32>§total_permutations: u32§total_iterations: u64§factorial: Option<FactorialRuntime>Implementations§
Source§impl TournamentRuntime
impl TournamentRuntime
pub(super) fn new( phases: Vec<Phase>, to_test: RoaringBitmap, payload_bytes: Vec<u8>, ) -> Self
pub(super) fn with_factorial( phases: Vec<Phase>, payload_bytes: Vec<u8>, factorial: FactorialRuntime, ) -> Self
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])
pub(super) fn is_complete(&self) -> bool
pub(super) fn peek_next_work_shape(&self) -> (u32, bool)
pub(super) fn progress(&self) -> ProgressSnapshot
pub(super) fn finalize(&self) -> Result<FinalOutput, StrategyError>
pub(super) fn memory_breakdown(&self) -> RuntimeMemoryBreakdown
fn seed_phase_from_factorial(&mut self)
fn current_iterations(&self) -> u32
fn is_final_phase(&self) -> bool
fn advance_phase(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TournamentRuntime
impl RefUnwindSafe for TournamentRuntime
impl Send for TournamentRuntime
impl Sync for TournamentRuntime
impl Unpin for TournamentRuntime
impl UnsafeUnpin for TournamentRuntime
impl UnwindSafe for TournamentRuntime
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