#[non_exhaustive]pub struct AdvancedMachineFeatures {
pub threads_per_core: Option<i64>,
pub enable_nested_virtualization: Option<bool>,
pub performance_monitoring_unit: Option<PerformanceMonitoringUnit>,
/* private fields */
}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).
performance_monitoring_unit: Option<PerformanceMonitoringUnit>Type of Performance Monitoring Unit (PMU) requested on node pool instances. If unset, PMU will not be available to the node.
Implementations§
Source§impl AdvancedMachineFeatures
impl AdvancedMachineFeatures
pub fn new() -> Self
Sourcepub fn set_threads_per_core<T>(self, v: T) -> Self
pub fn set_threads_per_core<T>(self, v: T) -> Self
Sets the value of threads_per_core.
Sourcepub fn set_or_clear_threads_per_core<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_threads_per_core<T>(self, v: Option<T>) -> Self
Sets or clears the value of threads_per_core.
Sourcepub fn set_enable_nested_virtualization<T>(self, v: T) -> Self
pub fn set_enable_nested_virtualization<T>(self, v: T) -> Self
Sets the value of enable_nested_virtualization.
Sourcepub fn set_or_clear_enable_nested_virtualization<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_nested_virtualization<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_nested_virtualization.
Sourcepub fn set_performance_monitoring_unit<T>(self, v: T) -> Selfwhere
T: Into<PerformanceMonitoringUnit>,
pub fn set_performance_monitoring_unit<T>(self, v: T) -> Selfwhere
T: Into<PerformanceMonitoringUnit>,
Sets the value of performance_monitoring_unit.
Sourcepub fn set_or_clear_performance_monitoring_unit<T>(self, v: Option<T>) -> Selfwhere
T: Into<PerformanceMonitoringUnit>,
pub fn set_or_clear_performance_monitoring_unit<T>(self, v: Option<T>) -> Selfwhere
T: Into<PerformanceMonitoringUnit>,
Sets or clears the value of performance_monitoring_unit.
Trait Implementations§
Source§impl Clone for AdvancedMachineFeatures
impl Clone for AdvancedMachineFeatures
Source§fn clone(&self) -> AdvancedMachineFeatures
fn clone(&self) -> AdvancedMachineFeatures
Returns a duplicate 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 Message for AdvancedMachineFeatures
impl Message for AdvancedMachineFeatures
Source§impl PartialEq for AdvancedMachineFeatures
impl PartialEq 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