pub struct Node { /* private fields */ }
Implementations§
Source§impl Node
impl Node
pub fn new(id: usize) -> Result<Node, &'static str>
pub fn id(&self) -> usize
pub fn cpus(&self) -> &Vec<Cpu>
pub fn cpumask(&self) -> &Vec<bool>
pub fn mem_free(&self) -> u64
pub fn mem_total(&self) -> u64
pub fn mem_used(&self) -> u64
pub fn hugepages_2m_free(&self) -> usize
pub fn hugepages_2m_total(&self) -> usize
pub fn hugepages_1g_free(&self) -> usize
pub fn hugepages_1g_total(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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