pub struct NumaAllocator { /* private fields */ }Expand description
NUMA-aware allocator for buffer pools
Implementations§
Source§impl NumaAllocator
impl NumaAllocator
Sourcepub fn for_current_thread() -> Self
pub fn for_current_thread() -> Self
Create allocator for the current thread’s NUMA node
Sourcepub fn allocate(&self, size: usize) -> Result<NumaAlignedBuffer>
pub fn allocate(&self, size: usize) -> Result<NumaAlignedBuffer>
Sourcepub fn preferred_node(&self) -> usize
pub fn preferred_node(&self) -> usize
Get the preferred NUMA node
Auto Trait Implementations§
impl Freeze for NumaAllocator
impl RefUnwindSafe for NumaAllocator
impl Send for NumaAllocator
impl Sync for NumaAllocator
impl Unpin for NumaAllocator
impl UnsafeUnpin for NumaAllocator
impl UnwindSafe for NumaAllocator
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