pub trait LegacyMemoryRegion: Copy + Debug {
// Required methods
fn start(&self) -> PhysAddr;
fn len(&self) -> u64;
fn kind(&self) -> MemoryRegionKind;
fn usable_after_bootloader_exit(&self) -> bool;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
Abstraction trait for a memory region returned by the UEFI or BIOS firmware.
Required Methods§
Sourcefn kind(&self) -> MemoryRegionKind
fn kind(&self) -> MemoryRegionKind
Returns the type of the region, e.g. whether it is usable or reserved.
Sourcefn usable_after_bootloader_exit(&self) -> bool
fn usable_after_bootloader_exit(&self) -> bool
Some regions become usable when the bootloader jumps to the kernel.
Provided Methods§
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.