#[non_exhaustive]pub struct Need {
pub requirement: Requirement,
pub present: Option<bool>,
pub plan: Option<Plan>,
pub unavailable: Option<Unavailable>,
}Expand description
One requirement as asked of this computer.
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.requirement: RequirementThe requirement.
present: Option<bool>Whether it is met here; None when that can’t be told (a Windows feature).
plan: Option<Plan>What brings it, when it isn’t known to be met; for a hypervisor installed that KVM keeps
from running (Unavailable::KvmHoldsVirtualization), what lets it run.
For a hypervisor, why its provider can’t run VMs here yet, as its detection says
(ProviderStatus::reason), whatever else it lacks: a hypervisor installed can still be
stopped, or this account lack the right to use it. None when it can, or for another
requirement.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Need
impl Freeze for Need
impl Move for Need
impl RefUnwindSafe for Need
impl Send for Need
impl Sync for Need
impl Unpin for Need
impl UnsafeUnpin for Needwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Step>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Need
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