pub struct NumaNode { /* private fields */ }
Expand description
Record all region’s info of a numa node.
Implementations§
Source§impl NumaNode
impl NumaNode
Sourcepub fn region_infos(&self) -> &Vec<NumaNodeInfo>
pub fn region_infos(&self) -> &Vec<NumaNodeInfo>
get reference of region_infos in numa node.
Sourcepub fn add_info(&mut self, info: &NumaNodeInfo)
pub fn add_info(&mut self, info: &NumaNodeInfo)
add a new numa region info into this numa node.
Sourcepub fn add_vcpu_ids(&mut self, vcpu_ids: &[u32])
pub fn add_vcpu_ids(&mut self, vcpu_ids: &[u32])
add a group of vcpu ids belong to this numa node
Trait Implementations§
impl Eq for NumaNode
impl StructuralPartialEq for NumaNode
Auto Trait Implementations§
impl Freeze for NumaNode
impl RefUnwindSafe for NumaNode
impl Send for NumaNode
impl Sync for NumaNode
impl Unpin for NumaNode
impl UnwindSafe for NumaNode
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