Struct Host
pub struct Host {}Expand description
This structure exposes OSX-specific host information.
Implementations§
§impl Host
impl Host
pub fn os_version_name() -> String
pub fn os_version_name() -> String
The operating system version string
pub fn os_version() -> Version
pub fn os_version() -> Version
The operating system version as a Version
pub fn is_sip_enabled() -> bool
pub fn is_sip_enabled() -> bool
Whether System Integrity Protection (SIP) is enabled on this host.
This conservatively returns true when the status can’t be determined.
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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