pub struct MacOSSystemInfo;Expand description
macOS-specific system information
Implementations§
Source§impl MacOSSystemInfo
impl MacOSSystemInfo
Sourcepub fn get_system_version() -> Result<HashMap<String, String>>
pub fn get_system_version() -> Result<HashMap<String, String>>
Get system version and build information
Sourcepub fn get_hardware_model() -> Result<String>
pub fn get_hardware_model() -> Result<String>
Get hardware model information
Sourcepub fn get_uptime() -> Result<u64>
pub fn get_uptime() -> Result<u64>
Get system uptime
Auto Trait Implementations§
impl Freeze for MacOSSystemInfo
impl RefUnwindSafe for MacOSSystemInfo
impl Send for MacOSSystemInfo
impl Sync for MacOSSystemInfo
impl Unpin for MacOSSystemInfo
impl UnwindSafe for MacOSSystemInfo
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