pub struct TimerStatus {
pub current_time: CurrentTime,
pub is_paused: bool,
}Expand description
Status which is continouusly handed to the callback function on each tick
Fields§
§current_time: CurrentTimeCurrent time of the timer
is_paused: boolDenotes if timer is paused or running
Trait Implementations§
Source§impl Clone for TimerStatus
impl Clone for TimerStatus
Source§fn clone(&self) -> TimerStatus
fn clone(&self) -> TimerStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimerStatus
impl Debug for TimerStatus
Source§impl<'de> Deserialize<'de> for TimerStatus
impl<'de> Deserialize<'de> for TimerStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimerStatus
impl RefUnwindSafe for TimerStatus
impl Send for TimerStatus
impl Sync for TimerStatus
impl Unpin for TimerStatus
impl UnsafeUnpin for TimerStatus
impl UnwindSafe for TimerStatus
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