pub trait PoolSource:
Inspect
+ Send
+ Sync {
// Required methods
fn address_bias(&self) -> u64;
fn file_offset(&self, address: u64) -> u64;
fn mappable(&self) -> MappableRef<'_>;
}
Expand description
A source for pool allocations.
Required Methods§
Sourcefn address_bias(&self) -> u64
fn address_bias(&self) -> u64
The bias to apply to the physical address of each allocation.
Sourcefn file_offset(&self, address: u64) -> u64
fn file_offset(&self, address: u64) -> u64
Translates a physical address into the file offset to use when mapping the page.
Sourcefn mappable(&self) -> MappableRef<'_>
fn mappable(&self) -> MappableRef<'_>
Returns the OS object to map pages from.