pub struct UnifiedConfig {
pub default_strategy: AllocationStrategy,
pub enable_buddy: bool,
pub enable_slab: bool,
pub enable_arena: bool,
pub buddy_threshold: usize,
pub slab_threshold: usize,
pub arena_threshold: usize,
pub enable_auto_routing: bool,
pub stats_interval: Duration,
}Expand description
Configuration for unified allocator
Fields§
§default_strategy: AllocationStrategyDefault allocation strategy
enable_buddy: boolEnable buddy allocator
enable_slab: boolEnable slab allocator
enable_arena: boolEnable arena allocator
buddy_threshold: usizeSize threshold for buddy allocator
slab_threshold: usizeSize threshold for slab allocator
arena_threshold: usizeSize threshold for arena allocator
enable_auto_routing: boolEnable automatic routing optimization
stats_interval: DurationStatistics collection interval
Trait Implementations§
Source§impl Clone for UnifiedConfig
impl Clone for UnifiedConfig
Source§fn clone(&self) -> UnifiedConfig
fn clone(&self) -> UnifiedConfig
Returns a duplicate 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 UnifiedConfig
impl Debug for UnifiedConfig
Auto Trait Implementations§
impl Freeze for UnifiedConfig
impl RefUnwindSafe for UnifiedConfig
impl Send for UnifiedConfig
impl Sync for UnifiedConfig
impl Unpin for UnifiedConfig
impl UnwindSafe for UnifiedConfig
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more