Struct libvirt_rpc::request::NodeInfo
[−]
[src]
pub struct NodeInfo(_);
Methods
impl NodeInfo
[src]
pub fn get_memory(&self) -> u64
[src]
pub fn get_cpus(&self) -> i32
[src]
the number of active CPUs
pub fn get_cores(&self) -> i32
[src]
number of cores per socket, total number of processors in case of unusual NUMA topology
pub fn get_sockets(&self) -> i32
[src]
number of CPU sockets per node if nodes > 1, 1 in case of unusual NUMA topology
pub fn get_nodes(&self) -> i32
[src]
the number of NUMA cell, 1 for unusual NUMA topologies or uniform memory access; check capabilities XML for the actual NUMA topology
Trait Implementations
impl Debug for NodeInfo
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<NodeGetInfoResponse> for NodeInfo
[src]
fn from(resp: NodeGetInfoResponse) -> Self
[src]
Performs the conversion.