pub struct SystemInfo { /* private fields */ }Expand description
Bounded immutable operating-system and language snapshot.
Implementations§
Source§impl SystemInfo
impl SystemInfo
pub const fn operating_system(&self) -> OperatingSystem
pub const fn family(&self) -> OperatingSystemFamily
pub fn version(&self) -> Option<&str>
pub fn edition(&self) -> Option<&str>
pub fn codename(&self) -> Option<&str>
pub fn architecture(&self) -> &str
pub const fn bitness(&self) -> SystemBitness
pub fn hostname(&self) -> Option<&str>
Sourcepub fn locale(&self) -> Option<&str>
pub fn locale(&self) -> Option<&str>
Most preferred BCP-47 locale, when the platform reports one.
Sourcepub fn preferred_languages(&self) -> &[Arc<str>]
pub fn preferred_languages(&self) -> &[Arc<str>]
Preferred BCP-47 languages in platform priority order.
pub const fn languages_truncated(&self) -> bool
Trait Implementations§
Source§impl Clone for SystemInfo
impl Clone for SystemInfo
Source§impl Debug for SystemInfo
impl Debug for SystemInfo
Source§impl Default for SystemInfo
impl Default for SystemInfo
impl Eq for SystemInfo
Source§impl PartialEq for SystemInfo
impl PartialEq for SystemInfo
impl StructuralPartialEq for SystemInfo
Auto Trait Implementations§
impl Forget for SystemInfo
impl Freeze for SystemInfo
impl Move for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnsafeUnpin for SystemInfo
impl UnwindSafe for SystemInfo
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