pub struct NumaMap {
pub ranges: Vec<Range>,
}
Expand description
A whole numu_maps
file.
Fields§
§ranges: Vec<Range>
Individual memory ranges.
Implementations§
Source§impl NumaMap
impl NumaMap
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
Read a numa_maps
file from path
.
Parses the contents and returns them as NumaMap
. Each line translates
to an entry in NumaMap::ranges
, which stores the properties gathered
from the file as Property
.
§Errors
Returns an error if it fails to read the file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NumaMap
impl RefUnwindSafe for NumaMap
impl Send for NumaMap
impl Sync for NumaMap
impl Unpin for NumaMap
impl UnwindSafe for NumaMap
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