pub struct OSProfile<'o, 'a> {
pub os: &'o str,
pub arch: &'a str,
pub win_edition: Option<String>,
pub computer_name: Option<String>,
pub is_wsl: Option<bool>,
pub distro: Option<String>,
pub hostname: Option<String>,
}Fields§
§os: &'o str§arch: &'a str§win_edition: Option<String>§computer_name: Option<String>§is_wsl: Option<bool>§distro: Option<String>§hostname: Option<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'o, 'a> Freeze for OSProfile<'o, 'a>
impl<'o, 'a> RefUnwindSafe for OSProfile<'o, 'a>
impl<'o, 'a> Send for OSProfile<'o, 'a>
impl<'o, 'a> Sync for OSProfile<'o, 'a>
impl<'o, 'a> Unpin for OSProfile<'o, 'a>
impl<'o, 'a> UnwindSafe for OSProfile<'o, 'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more