pub struct PagePoolAllocatorSpawner { /* private fields */ }
Expand description
A spawner for PagePoolAllocator
instances.
Useful when you need to create multiple allocators, without having ownership
of the actual PagePool
.
Implementations§
Source§impl PagePoolAllocatorSpawner
impl PagePoolAllocatorSpawner
Sourcepub fn allocator(&self, device_name: String) -> Result<PagePoolAllocator>
pub fn allocator(&self, device_name: String) -> Result<PagePoolAllocator>
Create an allocator instance that can be used to allocate pages. The
specified device_name
must be unique.
Users should create a new allocator for each device, as the device name is used to track allocations in the pool.
Auto Trait Implementations§
impl Freeze for PagePoolAllocatorSpawner
impl !RefUnwindSafe for PagePoolAllocatorSpawner
impl Send for PagePoolAllocatorSpawner
impl Sync for PagePoolAllocatorSpawner
impl Unpin for PagePoolAllocatorSpawner
impl !UnwindSafe for PagePoolAllocatorSpawner
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