pub struct ViewState {
pub is_break: bool,
pub is_postponed: bool,
pub postpone_count: u16,
pub round: u64,
pub time: String,
pub is_paused: bool,
}Expand description
Information that will be handed to the [on_tick] closure continously
Fields§
§is_break: boolDenotes if the current timer is a break timer
is_postponed: boolDenotes if the timer is currently in a postponed state or not
postpone_count: u16Denotes how often the current timer has already been postponed
round: u64Denotes the current interval round
time: StringDenotes the current time of the timer
is_paused: boolDenotes if the timer is currently paused
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ViewState
impl<'de> Deserialize<'de> for ViewState
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 ViewState
impl RefUnwindSafe for ViewState
impl Send for ViewState
impl Sync for ViewState
impl Unpin for ViewState
impl UnsafeUnpin for ViewState
impl UnwindSafe for ViewState
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