#[non_exhaustive]pub struct AdvancedMachineFeatures {
pub threads_per_core: Option<i64>,
pub enable_nested_virtualization: Option<bool>,
}Expand description
Specifies options for controlling advanced machine features.
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.threads_per_core: Option<i64>The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
enable_nested_virtualization: Option<bool>Whether or not to enable nested virtualization (defaults to false).
Implementations§
Source§impl AdvancedMachineFeatures
impl AdvancedMachineFeatures
Sourcepub fn set_threads_per_core<T: Into<Option<i64>>>(self, v: T) -> Self
pub fn set_threads_per_core<T: Into<Option<i64>>>(self, v: T) -> Self
Sets the value of threads_per_core.
Sourcepub fn set_enable_nested_virtualization<T: Into<Option<bool>>>(
self,
v: T,
) -> Self
pub fn set_enable_nested_virtualization<T: Into<Option<bool>>>( self, v: T, ) -> Self
Sets the value of enable_nested_virtualization.
Trait Implementations§
Source§impl Clone for AdvancedMachineFeatures
impl Clone for AdvancedMachineFeatures
Source§fn clone(&self) -> AdvancedMachineFeatures
fn clone(&self) -> AdvancedMachineFeatures
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdvancedMachineFeatures
impl Debug for AdvancedMachineFeatures
Source§impl Default for AdvancedMachineFeatures
impl Default for AdvancedMachineFeatures
Source§fn default() -> AdvancedMachineFeatures
fn default() -> AdvancedMachineFeatures
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdvancedMachineFeatureswhere
AdvancedMachineFeatures: Default,
impl<'de> Deserialize<'de> for AdvancedMachineFeatureswhere
AdvancedMachineFeatures: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for AdvancedMachineFeatures
impl Message for AdvancedMachineFeatures
Source§impl PartialEq for AdvancedMachineFeatures
impl PartialEq for AdvancedMachineFeatures
Source§impl Serialize for AdvancedMachineFeatures
impl Serialize for AdvancedMachineFeatures
impl StructuralPartialEq for AdvancedMachineFeatures
Auto Trait Implementations§
impl Freeze for AdvancedMachineFeatures
impl RefUnwindSafe for AdvancedMachineFeatures
impl Send for AdvancedMachineFeatures
impl Sync for AdvancedMachineFeatures
impl Unpin for AdvancedMachineFeatures
impl UnwindSafe for AdvancedMachineFeatures
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