pub struct DomainInfo {
pub state: virDomainState,
pub max_mem: u64,
pub memory: u64,
pub nr_virt_cpu: u32,
pub cpu_time: u64,
}Fields§
§state: virDomainStateThe running state, one of virDomainState.
max_mem: u64The maximum memory in KBytes allowed.
memory: u64The memory in KBytes used by the domain.
nr_virt_cpu: u32The number of virtual CPUs for the domain.
cpu_time: u64The CPU time used in nanoseconds.
Implementations§
Source§impl DomainInfo
impl DomainInfo
Sourcepub unsafe fn from_ptr(ptr: virDomainInfoPtr) -> DomainInfo
pub unsafe fn from_ptr(ptr: virDomainInfoPtr) -> DomainInfo
§Safety
The caller must ensure that the pointer is valid.
Trait Implementations§
Source§impl Clone for DomainInfo
impl Clone for DomainInfo
Source§fn clone(&self) -> DomainInfo
fn clone(&self) -> DomainInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DomainInfo
impl RefUnwindSafe for DomainInfo
impl Send for DomainInfo
impl Sync for DomainInfo
impl Unpin for DomainInfo
impl UnwindSafe for DomainInfo
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