pub enum AllocationPolicy {
Separate,
Pooled {
block_size: u64,
},
}Expand description
Buffer storage policy. Required or preferred native dedication takes precedence.
Variants§
Separate
Pooled
Reuse ordinary buffer blocks with this exact native size. No block shrinking. Requests larger than the block use 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 Freeze 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