pub struct StatsAggregator { /* private fields */ }Implementations§
Source§impl StatsAggregator
impl StatsAggregator
Sourcepub fn spawn(mur_home: PathBuf, rx: Receiver<StatsEvent>) -> Self
pub fn spawn(mur_home: PathBuf, rx: Receiver<StatsEvent>) -> Self
Spawn the background flush task. Returns the handle so callers can
hold a reference while the task runs. The task exits when rx is
closed (all senders dropped).
Auto Trait Implementations§
impl Freeze for StatsAggregator
impl !RefUnwindSafe for StatsAggregator
impl Send for StatsAggregator
impl Sync for StatsAggregator
impl Unpin for StatsAggregator
impl UnsafeUnpin for StatsAggregator
impl !UnwindSafe for StatsAggregator
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