pub struct FrameAllocOptions { /* private fields */ }Expand description
Options for allocating physical memory frames.
Implementations§
Source§impl FrameAllocOptions
impl FrameAllocOptions
Sourcepub exec fn zeroed(&mut self, zeroed: bool)
pub exec fn zeroed(&mut self, zeroed: bool)
Sets whether the allocated frames should be initialized with zeros.
If zeroed is true, the allocated frames are filled with zeros.
If not, the allocated frames will contain sensitive data and the caller
should clear them before sharing them with other components.
By default, the frames are zero-initialized.
Sourcepub exec fn alloc_frame_with<M: AnyFrameMeta>(
&self,
metadata: M,
) -> Result<Frame<M>, Error>
pub exec fn alloc_frame_with<M: AnyFrameMeta>( &self, metadata: M, ) -> Result<Frame<M>, Error>
Allocates a single frame with additional metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameAllocOptions
impl RefUnwindSafe for FrameAllocOptions
impl Send for FrameAllocOptions
impl Sync for FrameAllocOptions
impl Unpin for FrameAllocOptions
impl UnwindSafe for FrameAllocOptions
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