pub struct DynPmm<'a, const RAM: bool> { /* private fields */ }Available on crate feature
full only.Expand description
Implementations§
Source§impl<'a, const RAM: bool> DynPmm<'a, RAM>
impl<'a, const RAM: bool> DynPmm<'a, RAM>
Sourcepub fn allocate_one(&self) -> Result<Frames<RAM>, AllocError>where
Self: 'static,
pub fn allocate_one(&self) -> Result<Frames<RAM>, AllocError>where
Self: 'static,
Sourcepub fn allocate(&self, count: NonZero<usize>) -> Result<Frames<RAM>, AllocError>where
Self: 'static,
pub fn allocate(&self, count: NonZero<usize>) -> Result<Frames<RAM>, AllocError>where
Self: 'static,
Allocates counts number of contiguous owned Frames.
§Errors
Returns an AllocError if the memory could not be allocated. This
does not mean there is no free memory, just that is there no region
of contiguous memory large enough.
Sourcepub fn allocate_at(
&self,
at: RawFrame,
count: NonZero<usize>,
) -> Result<Frames<RAM>, AllocError>where
Self: 'static,
pub fn allocate_at(
&self,
at: RawFrame,
count: NonZero<usize>,
) -> Result<Frames<RAM>, AllocError>where
Self: 'static,
Allocates count number of contiguous owned Frames with the first frame being at at.
§Errors
Returns an AllocError if the memory could not be allocated. This
does not mean there is no free memory, just that is there no region
of contiguous memory large enough starting at at.
Trait Implementations§
impl<'a, const RAM: bool> Copy for DynPmm<'a, RAM>
Source§impl<const RAM: bool> Pmm<RAM> for DynPmm<'_, RAM>
impl<const RAM: bool> Pmm<RAM> for DynPmm<'_, RAM>
Source§fn allocate_one_raw(&self) -> Result<RawFrame, AllocError>
fn allocate_one_raw(&self) -> Result<RawFrame, AllocError>
Allocates a single frame. Read more
Source§fn allocate_raw(&self, count: NonZero<usize>) -> Result<RawFrame, AllocError>
fn allocate_raw(&self, count: NonZero<usize>) -> Result<RawFrame, AllocError>
Allocates
count number of contiguous frames. Read moreSource§fn allocate_raw_at(
&self,
at: RawFrame,
count: NonZero<usize>,
) -> Result<RawFrame, AllocError>
fn allocate_raw_at( &self, at: RawFrame, count: NonZero<usize>, ) -> Result<RawFrame, AllocError>
Source§unsafe fn deallocate_raw(&self, base: RawFrame, count: NonZero<usize>)
unsafe fn deallocate_raw(&self, base: RawFrame, count: NonZero<usize>)
impl<const RAM: bool> Send for DynPmm<'_, RAM>
impl<const RAM: bool> Sync for DynPmm<'_, RAM>
Auto Trait Implementations§
impl<'a, const RAM: bool> Freeze for DynPmm<'a, RAM>
impl<'a, const RAM: bool> RefUnwindSafe for DynPmm<'a, RAM>
impl<'a, const RAM: bool> Unpin for DynPmm<'a, RAM>
impl<'a, const RAM: bool> UnsafeUnpin for DynPmm<'a, RAM>
impl<'a, const RAM: bool> UnwindSafe for DynPmm<'a, RAM>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)