pub struct ReloadStatus {
pub duration_seconds: f32,
pub remaining_seconds: f32,
pub progress: f32,
pub rounds: u16,
}Expand description
Read-only snapshot of an active reload, obtained with
Magazine::reload_status. Ammo remains in reserve until completion.
Fields§
§duration_seconds: f32Total duration of this reload in simulation seconds.
remaining_seconds: f32Simulation seconds still needed, as reported by Magazine::remaining.
progress: f32Elapsed fraction in 0.0..=1.0. Rounding can yield 1.0 while active;
only Magazine::advance reports completion.
rounds: u16Rounds that would transfer at completion with the current capacity and reserve. Reconfiguration or reserve edits can change this projection.
Trait Implementations§
Source§impl Clone for ReloadStatus
impl Clone for ReloadStatus
Source§fn clone(&self) -> ReloadStatus
fn clone(&self) -> ReloadStatus
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 ReloadStatus
impl Debug for ReloadStatus
Source§impl PartialEq for ReloadStatus
impl PartialEq for ReloadStatus
impl Copy for ReloadStatus
impl StructuralPartialEq for ReloadStatus
Auto Trait Implementations§
impl Freeze for ReloadStatus
impl RefUnwindSafe for ReloadStatus
impl Send for ReloadStatus
impl Sync for ReloadStatus
impl Unpin for ReloadStatus
impl UnwindSafe for ReloadStatus
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