pub enum Duration {
FiveMinutes,
TenMinutes,
FifteenMinutes,
TwentyMinutes,
ThirtyMinutes,
ThirtyFiveMinutes,
FortyMinutes,
FiftyMinutes,
SixtyMinutes,
}Expand description
Represents common durations in minutes.
Variants§
FiveMinutes
TenMinutes
FifteenMinutes
TwentyMinutes
ThirtyMinutes
ThirtyFiveMinutes
FortyMinutes
FiftyMinutes
SixtyMinutes
Trait Implementations§
Source§impl Display for Duration
This formatter will return the number of minutes for the given duration enum.
impl Display for Duration
This formatter will return the number of minutes for the given duration enum.
Source§impl ToMinutes for Duration
This implementation will convert the duration type of minutes into integer minutes.
impl ToMinutes for Duration
This implementation will convert the duration type of minutes into integer minutes.
fn to_minutes(&self) -> u32
impl Copy for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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