#[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_tTrait 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 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 moreSource§impl Debug for sg_host_info
impl Debug for sg_host_info
impl Copy for sg_host_info
Auto Trait Implementations§
impl Freeze for sg_host_info
impl RefUnwindSafe for sg_host_info
impl !Send for sg_host_info
impl !Sync for sg_host_info
impl Unpin for sg_host_info
impl UnwindSafe for sg_host_info
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