pub struct Config<Period> { /* private fields */ }
Implementations§
source§impl<Period> Config<Period>
impl<Period> Config<Period>
pub fn empty() -> Self
sourcepub fn add_bucket(&mut self, bucket: Bucket<Period>)where
Period: PartialOrd,
pub fn add_bucket(&mut self, bucket: Bucket<Period>)where
Period: PartialOrd,
Insert a new retention bucket.
For optimal performance insert buckets from shortest retention to maximum retention.
Trait Implementations§
Auto Trait Implementations§
impl<Period> Freeze for Config<Period>
impl<Period> RefUnwindSafe for Config<Period>where
Period: RefUnwindSafe,
impl<Period> Send for Config<Period>where
Period: Send,
impl<Period> Sync for Config<Period>where
Period: Sync,
impl<Period> Unpin for Config<Period>where
Period: Unpin,
impl<Period> UnwindSafe for Config<Period>where
Period: UnwindSafe,
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