Struct google_api_proto::google::cloud::compute::v1::AdvancedMachineFeatures
source · pub struct AdvancedMachineFeatures {
pub enable_nested_virtualization: Option<bool>,
pub enable_uefi_networking: Option<bool>,
pub threads_per_core: Option<i32>,
pub visible_core_count: Option<i32>,
}
Expand description
Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled).
Fields§
§enable_nested_virtualization: Option<bool>
Whether to enable nested virtualization or not (default is false).
enable_uefi_networking: Option<bool>
Whether to enable UEFI networking for instance creation.
threads_per_core: Option<i32>
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.
visible_core_count: Option<i32>
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance’s nominal CPU count and the underlying platform’s SMT width.
Implementations§
source§impl AdvancedMachineFeatures
impl AdvancedMachineFeatures
sourcepub fn enable_nested_virtualization(&self) -> bool
pub fn enable_nested_virtualization(&self) -> bool
Returns the value of enable_nested_virtualization
, or the default value if enable_nested_virtualization
is unset.
sourcepub fn visible_core_count(&self) -> i32
pub fn visible_core_count(&self) -> i32
Returns the value of visible_core_count
, or the default value if visible_core_count
is unset.
sourcepub fn enable_uefi_networking(&self) -> bool
pub fn enable_uefi_networking(&self) -> bool
Returns the value of enable_uefi_networking
, or the default value if enable_uefi_networking
is unset.
sourcepub fn threads_per_core(&self) -> i32
pub fn threads_per_core(&self) -> i32
Returns the value of threads_per_core
, or the default value if threads_per_core
is unset.
Trait Implementations§
source§impl Clone for AdvancedMachineFeatures
impl Clone for AdvancedMachineFeatures
source§fn clone(&self) -> AdvancedMachineFeatures
fn clone(&self) -> AdvancedMachineFeatures
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AdvancedMachineFeatures
impl Debug for AdvancedMachineFeatures
source§impl Default for AdvancedMachineFeatures
impl Default for AdvancedMachineFeatures
source§impl Message for AdvancedMachineFeatures
impl Message for AdvancedMachineFeatures
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AdvancedMachineFeatures
impl PartialEq for AdvancedMachineFeatures
source§fn eq(&self, other: &AdvancedMachineFeatures) -> bool
fn eq(&self, other: &AdvancedMachineFeatures) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request