pub struct DynamicConfig {
pub block_size_granularity: u64,
pub max_chunk_size: u64,
pub min_device_allocation: u64,
}
Expand description
Config for DynamicAllocator
.
Fields§
§block_size_granularity: u64
All requests are rounded up to multiple of this value.
max_chunk_size: u64
Maximum chunk of blocks size.
Actual chunk size is min(max_chunk_size, block_size * blocks_per_chunk)
min_device_allocation: u64
Minimum size of device allocation.
Trait Implementations§
Source§impl Clone for DynamicConfig
impl Clone for DynamicConfig
Source§fn clone(&self) -> DynamicConfig
fn clone(&self) -> DynamicConfig
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 DynamicConfig
impl Debug for DynamicConfig
impl Copy for DynamicConfig
Auto Trait Implementations§
impl Freeze for DynamicConfig
impl RefUnwindSafe for DynamicConfig
impl Send for DynamicConfig
impl Sync for DynamicConfig
impl Unpin for DynamicConfig
impl UnwindSafe for DynamicConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)