#[non_exhaustive]pub struct ProviderStatus {
pub provider: Provider,
pub remote: bool,
pub available: bool,
pub hypervisor: Option<bool>,
pub plugin: Option<String>,
pub plugin_installed: bool,
pub utility: Option<UtilityState>,
pub needs: Vec<Need>,
pub reason: Option<Unavailable>,
pub account_lacks: Option<AccountLacks>,
}Expand description
One provider’s readiness on this machine: whether VMs can run on it here, and what is still missing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider: ProviderThe provider.
remote: boolA server, run elsewhere: nothing of it is installed here.
available: boolWhether VMs can run on it now (reason says why not).
hypervisor: Option<bool>Whether the hypervisor itself is installed (for Hyper-V, whether the Windows feature is
on; for libvirt and QEMU on Linux, with the programs their VMs need beside them,
helpers: mkisofs, virtiofsd).
None where nothing local is checked: a server.
plugin: Option<String>The Vagrant plugin it needs, if it is not built in.
plugin_installed: boolWhether that plugin is installed at a version that works (true when the provider is built in): an older one reads as not installed, so a setup installs it again, which updates it.
utility: Option<UtilityState>Where HashiCorp’s Vagrant VMware Utility stands; None when the provider doesn’t use it.
needs: Vec<Need>What is still to install for Vagrant to drive it here (needs()): empty when nothing is.
reason: Option<Unavailable>Why it can’t run VMs yet, None when it can.
account_lacks: Option<AccountLacks>What this account lacks to use it although it is installed (the right to manage Hyper-V, a new login after joining libvirt’s groups), whatever else is missing.
Trait Implementations§
Source§impl Clone for ProviderStatus
impl Clone for ProviderStatus
Source§impl Debug for ProviderStatus
impl Debug for ProviderStatus
Source§impl<'de> Deserialize<'de> for ProviderStatus
impl<'de> Deserialize<'de> for ProviderStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ProviderStatus
Source§impl PartialEq for ProviderStatus
impl PartialEq for ProviderStatus
Source§impl Serialize for ProviderStatus
impl Serialize for ProviderStatus
impl StructuralPartialEq for ProviderStatus
Source§impl TS for ProviderStatus
impl TS for ProviderStatus
Source§type WithoutGenerics = ProviderStatus
type WithoutGenerics = ProviderStatus
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = ProviderStatus
type OptionInnerType = ProviderStatus
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read moreSource§fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
Auto Trait Implementations§
impl Forget for ProviderStatus
impl Freeze for ProviderStatus
impl Move for ProviderStatus
impl RefUnwindSafe for ProviderStatus
impl Send for ProviderStatus
impl Sync for ProviderStatus
impl Unpin for ProviderStatus
impl UnsafeUnpin for ProviderStatus
impl UnwindSafe for ProviderStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.