pub struct Probes {
pub status: Run,
pub version: Run,
pub lxss_service: Option<bool>,
pub wsl_service: Option<bool>,
pub vm_platform: Option<Feature>,
pub wsl_feature: Option<Feature>,
pub hypervisor: Option<bool>,
pub reboot_pending: Option<bool>,
pub renames_pending: Option<bool>,
pub installed_this_boot: bool,
pub restarted_for_wsl: bool,
}Expand description
Every signal the check read. None is “couldn’t tell” (unreadable, or the probe failed).
Fields§
§status: Runwsl.exe --status.
version: Runwsl.exe --version: only the Store WSL knows this option.
lxss_service: Option<bool>The WSL feature’s service (LxssManager) is registered.
wsl_service: Option<bool>The Store WSL’s service (WslService) is registered.
vm_platform: Option<Feature>The Virtual Machine Platform feature’s state.
wsl_feature: Option<Feature>The Windows Subsystem for Linux feature’s state.
hypervisor: Option<bool>A hypervisor runs (what the Virtual Machine Platform starts at boot).
reboot_pending: Option<bool>Windows’ servicing waits for a restart.
renames_pending: Option<bool>Files wait to be replaced at the next restart (weak: many installers leave some).
installed_this_boot: boolThe caller’s own “turn on WSL 2” ran since this boot (Marks).
restarted_for_wsl: boolThe caller restarted Windows for WSL in an earlier boot (Marks).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Probes
impl Freeze for Probes
impl Move for Probes
impl RefUnwindSafe for Probes
impl Send for Probes
impl Sync for Probes
impl Unpin for Probes
impl UnsafeUnpin for Probes
impl UnwindSafe for Probes
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