pub struct ChurnConfig {
pub pages: u32,
pub run_pages: (u32, u32),
pub operations: u32,
pub placement: Placement,
pub compact: bool,
pub seed: u64,
}Expand description
A churn experiment.
Fields§
§pages: u32Pool size in pages.
run_pages: (u32, u32)Smallest and largest run, in pages (uniform).
operations: u32Operations to perform. Each allocates one run; when the pool is too full to place it, random live runs are freed until it fits.
placement: PlacementPlacement policy.
compact: boolWhether a failed placement first tries compaction (one run per step, as the engine does) before freeing runs.
seed: u64Generator seed.
Trait Implementations§
Source§impl Clone for ChurnConfig
impl Clone for ChurnConfig
Source§fn clone(&self) -> ChurnConfig
fn clone(&self) -> ChurnConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChurnConfig
impl Debug for ChurnConfig
impl Copy for ChurnConfig
Auto Trait Implementations§
impl Freeze for ChurnConfig
impl RefUnwindSafe for ChurnConfig
impl Send for ChurnConfig
impl Sync for ChurnConfig
impl Unpin for ChurnConfig
impl UnsafeUnpin for ChurnConfig
impl UnwindSafe for ChurnConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)