pub struct CpuOptionsRequest {
pub core_count: Option<i64>,
pub threads_per_core: Option<i64>,
}Expand description
The CPU options for the instance. Both the core count and threads per core must be specified in the request.
Fields§
§core_count: Option<i64>The number of CPU cores for the instance.
threads_per_core: Option<i64>The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.
Trait Implementations§
Source§impl Clone for CpuOptionsRequest
impl Clone for CpuOptionsRequest
Source§fn clone(&self) -> CpuOptionsRequest
fn clone(&self) -> CpuOptionsRequest
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 CpuOptionsRequest
impl Debug for CpuOptionsRequest
Source§impl Default for CpuOptionsRequest
impl Default for CpuOptionsRequest
Source§fn default() -> CpuOptionsRequest
fn default() -> CpuOptionsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CpuOptionsRequest
impl PartialEq for CpuOptionsRequest
impl StructuralPartialEq for CpuOptionsRequest
Auto Trait Implementations§
impl Freeze for CpuOptionsRequest
impl RefUnwindSafe for CpuOptionsRequest
impl Send for CpuOptionsRequest
impl Sync for CpuOptionsRequest
impl Unpin for CpuOptionsRequest
impl UnwindSafe for CpuOptionsRequest
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