pub struct Timer {
pub current_time: Time,
pub rounds: usize,
pub current_round: usize,
pub running: bool,
}Fields§
§current_time: Time§rounds: usize§current_round: usize§running: boolImplementations§
Source§impl Timer
impl Timer
pub fn reset(&mut self)
pub fn increment_rounds(&mut self)
pub fn decrement_rounds(&mut self)
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnwindSafe for Timer
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