pub struct Warmup { /* private fields */ }Implementations§
Source§impl Warmup
impl Warmup
pub fn new(now: Instant) -> Warmup
Sourcepub fn current(&self, now: Instant) -> Option<(usize, u64)>
pub fn current(&self, now: Instant) -> Option<(usize, u64)>
The step you’re on and the seconds left in it, or None when done.
pub fn done(&self, now: Instant) -> bool
Sourcepub fn breath(&self, now: Instant) -> Option<&'static str>
pub fn breath(&self, now: Instant) -> Option<&'static str>
During the breathing step: whether to breathe in or out right now.
pub fn total() -> u64
Auto Trait Implementations§
impl Forget for Warmup
impl Freeze for Warmup
impl Move for Warmup
impl RefUnwindSafe for Warmup
impl Send for Warmup
impl Sync for Warmup
impl Unpin for Warmup
impl UnsafeUnpin for Warmup
impl UnwindSafe for Warmup
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more