pub struct WavePreview {
pub index: usize,
pub spec: WaveSpec,
pub upcoming: Option<WaveSpec>,
pub remaining_credits: u32,
pub remaining_spawns: u32,
pub status: WaveStatus,
}Expand description
A read-only schedule snapshot for one nonzero spawn cost and alive count.
This does not reserve a spawn or predict actor deaths or future pressure.
See WaveSequence::preview for a complete example.
Fields§
§index: usizeCurrent zero-based wave index, retained during rest and after finishing.
spec: WaveSpecAuthored specification at index, including its reward and rest.
upcoming: Option<WaveSpec>Authored successor at index + 1, or None on the final wave. Its start
time is unknown while the current wave is active or awaiting clear.
remaining_credits: u32Unspent credits in the current wave; zero during rest and after finish.
remaining_spawns: u32Current credits divided by the requested nonzero spawn cost, rounded down. This is budget capacity, not a count of already scheduled actors; timing and alive limits may block admission. Other spawn costs can consume a remainder, and future-wave credits are not included.
status: WaveStatusScheduling phase and applicable countdown or admission blocker.
Trait Implementations§
Source§impl Clone for WavePreview
impl Clone for WavePreview
Source§fn clone(&self) -> WavePreview
fn clone(&self) -> WavePreview
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more