#[non_exhaustive]pub struct AdvancedMachineFeatures {
pub threads_per_core: i32,
/* 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: i32
The number of threads per physical core.
Implementations§
Source§impl AdvancedMachineFeatures
impl AdvancedMachineFeatures
pub fn new() -> Self
Sourcepub fn set_threads_per_core<T: Into<i32>>(self, v: T) -> Self
pub fn set_threads_per_core<T: Into<i32>>(self, v: T) -> Self
Sets the value of threads_per_core.
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