pub enum Interval {
Nanos(u32),
Micros(u32),
Millis(u32),
Seconds(u32),
Minutes(u32),
Hours(u32),
Days(u32),
Weeks(u32),
}Variants§
Implementations§
Source§impl Interval
impl Interval
pub fn system_time_before(&self, system_time: SystemTime) -> SystemTime
pub fn system_time_after(&self, system_time: SystemTime) -> SystemTime
Trait Implementations§
Source§impl AddAssign<Interval> for Timestamp
impl AddAssign<Interval> for Timestamp
Source§fn add_assign(&mut self, interval: Interval)
fn add_assign(&mut self, interval: Interval)
Performs the
+= operation. Read moreSource§impl From<TimeInterval> for Interval
impl From<TimeInterval> for Interval
Source§fn from(from: TimeInterval) -> Self
fn from(from: TimeInterval) -> Self
Converts to this type from the input type.
Source§impl SubAssign<Interval> for Timestamp
impl SubAssign<Interval> for Timestamp
Source§fn sub_assign(&mut self, interval: Interval)
fn sub_assign(&mut self, interval: Interval)
Performs the
-= operation. Read moreimpl Copy for Interval
impl Eq for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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