pub enum MemoryPoolLayout {
Sliced(Vec<SlicedPool>),
Direct,
SubSlices,
ExclusivePages,
}Expand description
A layout for a device’s dynamic memory pools, applied with
Backend::memory_install_pools.
Variants§
Sliced(Vec<SlicedPool>)
An ordered list of pools that sub-slice fixed-size pages. An allocation
lands in the first pool whose max_slice
accepts its size, so a small pool listed before a large one captures the
small-allocation traffic. Pages are allocated on first use.
Direct
One direct pool for everything: every allocation is its own, sized to the request and reused by exact size — no pages, no sub-slicing, no padding beyond alignment. With no page size chosen in advance, this is what a workload runs on for its largest allocation to be read back as it was asked for.
SubSlices
The runtime’s default: a ladder of size-bucketed pools that sub-slice large pages.
ExclusivePages
One page per allocation, in exponentially spaced size buckets.
Trait Implementations§
Source§impl Clone for MemoryPoolLayout
impl Clone for MemoryPoolLayout
Source§fn clone(&self) -> MemoryPoolLayout
fn clone(&self) -> MemoryPoolLayout
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemoryPoolLayout
impl Debug for MemoryPoolLayout
impl Eq for MemoryPoolLayout
Source§impl PartialEq for MemoryPoolLayout
impl PartialEq for MemoryPoolLayout
impl StructuralPartialEq for MemoryPoolLayout
Auto Trait Implementations§
impl Freeze for MemoryPoolLayout
impl RefUnwindSafe for MemoryPoolLayout
impl Send for MemoryPoolLayout
impl Sync for MemoryPoolLayout
impl Unpin for MemoryPoolLayout
impl UnsafeUnpin for MemoryPoolLayout
impl UnwindSafe for MemoryPoolLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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