pub struct Machine {
pub host: Host,
pub packages_installed: bool,
pub docker: DockerFound,
pub wsl: Option<WslState>,
pub providers: Vec<ProviderStatus>,
pub groups_pending: Vec<String>,
pub elevation: Elevation,
pub user: Option<String>,
}Expand description
What a setup reads of the machine check (Check): the computer, its package manager, Docker
and its engines, WSL 2, the Vagrant providers and the groups pending a login.
Fields§
§host: HostThe computer (providers::login_groups reads which group opens /dev/kvm on it).
packages_installed: boolWhether the package manager a setup installs through is there.
docker: DockerFoundDocker and its engines.
wsl: Option<WslState>WSL 2’s state (Windows), when it was checked.
providers: Vec<ProviderStatus>Every Vagrant provider offered here.
groups_pending: Vec<String>The groups this account joined since logging in (Linux).
elevation: ElevationHow a setup’s administrator steps are elevated here: whether they raise a password prompt.
user: Option<String>The account a setup installs for (Linux joins it to a tool’s groups).
Implementations§
Trait Implementations§
impl Eq for Machine
impl StructuralPartialEq for Machine
Auto Trait Implementations§
impl Forget for Machine
impl Freeze for Machinewhere
&'static str: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<Engine>: Freeze,
PhantomData<ProviderStatus>: Freeze,
PhantomData<String>: Freeze,
impl Move for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machinewhere
RawVecInner: Sync,
impl Unpin for Machine
impl UnsafeUnpin for Machinewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<Engine>: UnsafeUnpin,
PhantomData<ProviderStatus>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Machine
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.