Struct libstatgrab_sys::sg_host_info
source · #[repr(C)]pub struct sg_host_info {
pub os_name: *mut c_char,
pub os_release: *mut c_char,
pub os_version: *mut c_char,
pub platform: *mut c_char,
pub hostname: *mut c_char,
pub bitwidth: c_uint,
pub host_state: sg_host_state,
pub ncpus: c_uint,
pub maxcpus: c_uint,
pub uptime: time_t,
pub systime: time_t,
}
Fields§
§os_name: *mut c_char
§os_release: *mut c_char
§os_version: *mut c_char
§platform: *mut c_char
§hostname: *mut c_char
§bitwidth: c_uint
§host_state: sg_host_state
§ncpus: c_uint
§maxcpus: c_uint
§uptime: time_t
§systime: time_t
Trait Implementations§
source§impl Clone for sg_host_info
impl Clone for sg_host_info
source§fn clone(&self) -> sg_host_info
fn clone(&self) -> sg_host_info
Returns a copy 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 more