pub trait FrameAllocator:
Clone
+ Sync
+ Send
+ 'static {
// Required methods
fn alloc_frame(&self) -> Option<PhysAddr>;
fn dealloc_frame(&self, frame: PhysAddr);
fn phys_to_virt(&self, paddr: PhysAddr) -> *mut u8;
}Required Methods§
fn alloc_frame(&self) -> Option<PhysAddr>
fn dealloc_frame(&self, frame: PhysAddr)
fn phys_to_virt(&self, paddr: PhysAddr) -> *mut u8
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.