#[non_exhaustive]pub struct OsInfo {
pub kind: Kind,
pub name: &'static str,
pub version: Option<&'static Version>,
pub kernel: &'static str,
pub distro: &'static str,
pub distro_id: &'static str,
pub os_release: Option<&'static OsRelease>,
pub edition: Option<&'static str>,
pub codename: Option<&'static str>,
pub is_64bit: bool,
pub name_source: Source,
}Expand description
Everything this module knows, in one value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Kindkind.
name: &'static strname.
version: Option<&'static Version>§kernel: &'static str§distro: &'static str§distro_id: &'static str§os_release: Option<&'static OsRelease>§edition: Option<&'static str>§codename: Option<&'static str>§is_64bit: bool§name_source: SourceWhere name came from.
Trait Implementations§
Auto Trait Implementations§
impl Forget for OsInfo
impl Freeze for OsInfo
impl RefUnwindSafe for OsInfo
impl Send for OsInfo
impl Sync for OsInfo
impl Unpin for OsInfo
impl UnsafeUnpin for OsInfo
impl UnwindSafe for OsInfo
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