pub struct FramesGuard { /* private fields */ }Expand description
RAII wrapper for multiple frames
Implementations§
Source§impl FramesGuard
impl FramesGuard
Sourcepub fn new(
frames: Vec<PhysicalFrame>,
allocator: &'static FrameAllocator,
) -> Self
pub fn new( frames: Vec<PhysicalFrame>, allocator: &'static FrameAllocator, ) -> Self
Create a new frames guard
Sourcepub fn leak(self) -> Vec<PhysicalFrame>
pub fn leak(self) -> Vec<PhysicalFrame>
Release ownership of the frames without deallocating