pub struct Timer<'a> { /* private fields */ }Expand description
A widget that displays remaining time from a TimerState.
Implementations§
Source§impl<'a> Timer<'a>
impl<'a> Timer<'a>
Sourcepub fn format(self, format: TimerFormat) -> Self
pub fn format(self, format: TimerFormat) -> Self
Sets the display format.
Sourcepub fn running_style(self, style: Style) -> Self
pub fn running_style(self, style: Style) -> Self
Sets a style override used while the timer is running.
Sourcepub fn finished_style(self, style: Style) -> Self
pub fn finished_style(self, style: Style) -> Self
Sets a style override used when the timer has finished.
Trait Implementations§
Source§impl StatefulWidget for Timer<'_>
impl StatefulWidget for Timer<'_>
Auto Trait Implementations§
impl<'a> Freeze for Timer<'a>
impl<'a> RefUnwindSafe for Timer<'a>
impl<'a> Send for Timer<'a>
impl<'a> Sync for Timer<'a>
impl<'a> Unpin for Timer<'a>
impl<'a> UnsafeUnpin for Timer<'a>
impl<'a> UnwindSafe for Timer<'a>
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