pub enum Interval {
Nanos(u32),
Micros(u32),
Millis(u32),
Seconds(u32),
Minutes(u32),
Hours(u32),
Days(u32),
Weeks(u32),
}Variants
Nanos(u32)
Micros(u32)
Millis(u32)
Seconds(u32)
Minutes(u32)
Hours(u32)
Days(u32)
Weeks(u32)
Implementations
sourceimpl 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
sourceimpl AddAssign<Interval> for Timestamp
impl AddAssign<Interval> for Timestamp
sourcefn add_assign(&mut self, interval: Interval)
fn add_assign(&mut self, interval: Interval)
Performs the += operation. Read more
sourceimpl From<TimeInterval> for Interval
impl From<TimeInterval> for Interval
sourcefn from(from: TimeInterval) -> Self
fn from(from: TimeInterval) -> Self
Performs the conversion.
sourceimpl SubAssign<Interval> for Timestamp
impl SubAssign<Interval> for Timestamp
sourcefn sub_assign(&mut self, interval: Interval)
fn sub_assign(&mut self, interval: Interval)
Performs the -= operation. Read more
impl Copy for Interval
impl Eq for Interval
impl StructuralEq for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more