Struct lgalloc::BackgroundWorkerConfig
source · pub struct BackgroundWorkerConfig {
pub interval: Duration,
pub clear_bytes: usize,
}
Expand description
Configuration for lgalloc’s background worker.
Fields§
§interval: Duration
How frequently it should tick
clear_bytes: usize
How many bytes to clear per size class.
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 Debug for BackgroundWorkerConfig
impl Debug for BackgroundWorkerConfig
source§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
impl Eq for BackgroundWorkerConfig
impl StructuralPartialEq for BackgroundWorkerConfig
Auto Trait Implementations§
impl Freeze for BackgroundWorkerConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)