pub struct RetentionReaper;Expand description
Deterministic modeled-clock retention reaper.
Implementations§
Source§impl RetentionReaper
impl RetentionReaper
Sourcepub fn sweep(
&self,
store: &mut DeviceSampleStore,
receipts: &[ConsentReceipt],
now: FrameClock,
) -> Vec<Evicted>
pub fn sweep( &self, store: &mut DeviceSampleStore, receipts: &[ConsentReceipt], now: FrameClock, ) -> Vec<Evicted>
Sweeps samples and referenced content older than their consent window.
Trait Implementations§
Source§impl Clone for RetentionReaper
impl Clone for RetentionReaper
Source§fn clone(&self) -> RetentionReaper
fn clone(&self) -> RetentionReaper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetentionReaper
impl Debug for RetentionReaper
Source§impl Default for RetentionReaper
impl Default for RetentionReaper
Source§fn default() -> RetentionReaper
fn default() -> RetentionReaper
Returns the “default value” for a type. Read more
impl Eq for RetentionReaper
Source§impl PartialEq for RetentionReaper
impl PartialEq for RetentionReaper
impl StructuralPartialEq for RetentionReaper
Auto Trait Implementations§
impl Freeze for RetentionReaper
impl RefUnwindSafe for RetentionReaper
impl Send for RetentionReaper
impl Sync for RetentionReaper
impl Unpin for RetentionReaper
impl UnsafeUnpin for RetentionReaper
impl UnwindSafe for RetentionReaper
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