pub enum AllocationPolicy {
Separate,
Automatic,
Pooled {
block_size: u64,
},
Adaptive {
block_size: u64,
min_block_size: u64,
},
}Expand description
Managed resource storage policy. Required or preferred native dedication takes precedence.
Variants§
Separate
Automatic
Heap-sized default pools with pinned VMA growth, reuse and separate fallback.
Pooled
Reuse ordinary buffer blocks with this exact native size. No block shrinking. Requests larger than the block use separate storage.
Adaptive
Try bounded power-of-two block sizes, shrinking only on recoverable storage failure. Large regions and exhausted block attempts fall back to separate storage.
Trait Implementations§
Source§impl Clone for AllocationPolicy
impl Clone for AllocationPolicy
impl Copy for AllocationPolicy
Source§impl Debug for AllocationPolicy
impl Debug for AllocationPolicy
Source§impl Default for AllocationPolicy
impl Default for AllocationPolicy
impl Eq for AllocationPolicy
Source§impl PartialEq for AllocationPolicy
impl PartialEq for AllocationPolicy
impl StructuralPartialEq for AllocationPolicy
Auto Trait Implementations§
impl Forget for AllocationPolicy
impl Freeze for AllocationPolicy
impl Move for AllocationPolicy
impl RefUnwindSafe for AllocationPolicy
impl Send for AllocationPolicy
impl Sync for AllocationPolicy
impl Unpin for AllocationPolicy
impl UnsafeUnpin for AllocationPolicy
impl UnwindSafe for AllocationPolicy
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