#[non_exhaustive]pub struct MachineConfig {
pub vcpu_count: u32,
pub mem_size_mib: MemSizeMib,
pub smt: bool,
pub track_dirty_pages: bool,
pub cpu_template: Option<String>,
pub huge_pages: Option<String>,
}Expand description
Validated /machine-config PUT body.
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.vcpu_count: u32Validated vCPU count (1..=32).
mem_size_mib: MemSizeMibValidated RAM size in MiB (>= 1).
smt: boolAlways false on aarch64 — the constructor rejects true.
track_dirty_pages: boolWhether dirty-page tracking is enabled.
cpu_template: Option<String>Validated CPU template (aarch64 names honored, x86 names recorded for warn).
huge_pages: Option<String>Huge-page request (Some("2M") ⇒ accept-and-warn).
Trait Implementations§
Source§impl Clone for MachineConfig
impl Clone for MachineConfig
Source§fn clone(&self) -> MachineConfig
fn clone(&self) -> MachineConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MachineConfig
impl Debug for MachineConfig
Source§impl Serialize for MachineConfig
impl Serialize for MachineConfig
Source§impl TryFrom<RawMachineConfig> for MachineConfig
impl TryFrom<RawMachineConfig> for MachineConfig
Auto Trait Implementations§
impl Freeze for MachineConfig
impl RefUnwindSafe for MachineConfig
impl Send for MachineConfig
impl Sync for MachineConfig
impl Unpin for MachineConfig
impl UnsafeUnpin for MachineConfig
impl UnwindSafe for MachineConfig
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