pub struct Tier { /* private fields */ }Expand description
One tier of a HybridStore: a backend plus its horizon advertiser.
Implementations§
Source§impl Tier
impl Tier
Sourcepub fn new(
access: Arc<dyn MetricAccess>,
earliest_ms: Arc<dyn Fn() -> Option<i64> + Send + Sync>,
) -> Self
pub fn new( access: Arc<dyn MetricAccess>, earliest_ms: Arc<dyn Fn() -> Option<i64> + Send + Sync>, ) -> Self
A tier whose horizon is computed on demand (e.g. the in-memory tier’s retention edge).
Sourcepub fn unbounded(access: Arc<dyn MetricAccess>) -> Self
pub fn unbounded(access: Arc<dyn MetricAccess>) -> Self
A tier that covers back as far as any query asks (a durable tail such as sqlite) — always serves the older remainder.
Auto Trait Implementations§
impl !RefUnwindSafe for Tier
impl !UnwindSafe for Tier
impl Freeze for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
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