pub struct PageAllocator { /* private fields */ }
Implementations§
Source§impl PageAllocator
impl PageAllocator
pub fn new(mem: MemoryBlock) -> Self
pub async fn alloc_pages(&self, n: usize) -> Option<ScopedPages<'_>>
pub async fn alloc_bytes(&self, n: usize) -> Option<ScopedPages<'_>>
Trait Implementations§
Source§impl Debug for PageAllocator
impl Debug for PageAllocator
Auto Trait Implementations§
impl !Freeze for PageAllocator
impl !RefUnwindSafe for PageAllocator
impl Send for PageAllocator
impl Sync for PageAllocator
impl Unpin for PageAllocator
impl !UnwindSafe for PageAllocator
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