Struct lgalloc::BackgroundWorkerConfig
source · pub struct BackgroundWorkerConfig {
pub interval: Duration,
pub batch: usize,
pub print_stats: bool,
}Expand description
Configuration for lgalloc’s background worker.
Fields§
§interval: DurationHow frequently it should tick
batch: usizeHow many allocations to clear per size class.
print_stats: boolEnable debug stat printing.
Trait Implementations§
source§impl Clone for BackgroundWorkerConfig
impl Clone for BackgroundWorkerConfig
source§fn clone(&self) -> BackgroundWorkerConfig
fn clone(&self) -> BackgroundWorkerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for BackgroundWorkerConfig
impl Default for BackgroundWorkerConfig
source§fn default() -> BackgroundWorkerConfig
fn default() -> BackgroundWorkerConfig
Returns the “default value” for a type. Read more
source§impl PartialEq for BackgroundWorkerConfig
impl PartialEq for BackgroundWorkerConfig
source§fn eq(&self, other: &BackgroundWorkerConfig) -> bool
fn eq(&self, other: &BackgroundWorkerConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BackgroundWorkerConfig
impl StructuralEq for BackgroundWorkerConfig
impl StructuralPartialEq for BackgroundWorkerConfig
Auto Trait Implementations§
impl RefUnwindSafe for BackgroundWorkerConfig
impl Send for BackgroundWorkerConfig
impl Sync for BackgroundWorkerConfig
impl Unpin for BackgroundWorkerConfig
impl UnwindSafe for BackgroundWorkerConfig
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