#[non_exhaustive]pub struct MachineConfigPatch {
pub vcpu_count: Option<u32>,
pub mem_size_mib: Option<MemSizeMib>,
pub smt: Option<bool>,
pub track_dirty_pages: Option<bool>,
pub cpu_template: Option<String>,
pub huge_pages: Option<String>,
}Expand description
Validated /machine-config PATCH 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: Option<u32>New vCPU count, validated 1..=32 if present.
mem_size_mib: Option<MemSizeMib>New RAM size, validated >= 1 if present.
smt: Option<bool>SMT toggle (must remain false).
track_dirty_pages: Option<bool>Dirty-page tracking toggle.
cpu_template: Option<String>Replacement CPU template.
huge_pages: Option<String>Replacement huge-pages setting.
Trait Implementations§
Source§impl Clone for MachineConfigPatch
impl Clone for MachineConfigPatch
Source§fn clone(&self) -> MachineConfigPatch
fn clone(&self) -> MachineConfigPatch
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 MachineConfigPatch
impl Debug for MachineConfigPatch
Source§impl Serialize for MachineConfigPatch
impl Serialize for MachineConfigPatch
Auto Trait Implementations§
impl Freeze for MachineConfigPatch
impl RefUnwindSafe for MachineConfigPatch
impl Send for MachineConfigPatch
impl Sync for MachineConfigPatch
impl Unpin for MachineConfigPatch
impl UnsafeUnpin for MachineConfigPatch
impl UnwindSafe for MachineConfigPatch
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