pub struct RoundSummary {
pub round: u32,
pub phase: Phase,
pub score: [u16; 2],
pub remaining_seconds: f32,
pub countdown_seconds: Option<u32>,
pub last_outcome: Option<RoundOutcome>,
pub match_winner: Option<Team>,
}Expand description
An allocation-free snapshot for round HUDs and menus.
Created by TacticalMatch::summary; reading it never drains feedback events
or changes the authoritative phase. Team arrays use attack, then defend order.
Fields§
§round: u32§phase: Phase§score: [u16; 2]§remaining_seconds: f32Time to the current phase’s deadline, or zero when finished. An earlier plant/defuse completion can change the phase first.
countdown_seconds: Option<u32>Remaining phase seconds rounded up for display; None when finished.
last_outcome: Option<RoundOutcome>Latest result, retained through subsequent rounds until replaced or reset.
None before the first result of a fresh match.
match_winner: Option<Team>Set only after entering Phase::Finished, including by forfeit.
A match-clinching intermission still has no match winner here.
Trait Implementations§
Source§impl Clone for RoundSummary
impl Clone for RoundSummary
Source§fn clone(&self) -> RoundSummary
fn clone(&self) -> RoundSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoundSummary
impl Debug for RoundSummary
Source§impl PartialEq for RoundSummary
impl PartialEq for RoundSummary
impl Copy for RoundSummary
impl StructuralPartialEq for RoundSummary
Auto Trait Implementations§
impl Freeze for RoundSummary
impl RefUnwindSafe for RoundSummary
impl Send for RoundSummary
impl Sync for RoundSummary
impl Unpin for RoundSummary
impl UnwindSafe for RoundSummary
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