pub struct TimeRange {
pub start: i64,
pub end: i64,
}Expand description
Half-open time range [start, end), in milliseconds since the Unix epoch.
Prometheus block bounds are half-open too (maxTime is exclusive), while
chunk metadata and tombstones use closed intervals; Self::overlaps_chunk
does the translation.
Fields§
§start: i64Inclusive lower bound.
end: i64Exclusive upper bound.
Implementations§
Trait Implementations§
impl Copy for TimeRange
impl Eq for TimeRange
impl StructuralPartialEq for TimeRange
Auto Trait Implementations§
impl Forget for TimeRange
impl Freeze for TimeRange
impl Move for TimeRange
impl RefUnwindSafe for TimeRange
impl Send for TimeRange
impl Sync for TimeRange
impl Unpin for TimeRange
impl UnsafeUnpin for TimeRange
impl UnwindSafe for TimeRange
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