pub struct RawMachineConfig {
pub vcpu_count: u32,
pub mem_size_mib: u64,
pub smt: bool,
pub track_dirty_pages: bool,
pub cpu_template: Option<String>,
pub huge_pages: Option<String>,
}Expand description
Raw shape of the /machine-config PUT body, exactly as it arrives off the wire.
Fields§
§vcpu_count: u32Number of vCPUs to allocate.
mem_size_mib: u64Guest RAM size, in MiB.
smt: boolSymmetric multithreading. Must be false on aarch64.
track_dirty_pages: boolEnable dirty-page tracking (required for Diff snapshots).
cpu_template: Option<String>CPU template name. Aarch64-only V1N1 is honored; x86 names accept-and-warn.
huge_pages: Option<String>Huge-page request. Currently Some("2M") ⇒ A (warn); None default.
Trait Implementations§
Source§impl Clone for RawMachineConfig
impl Clone for RawMachineConfig
Source§fn clone(&self) -> RawMachineConfig
fn clone(&self) -> RawMachineConfig
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 RawMachineConfig
impl Debug for RawMachineConfig
Source§impl<'de> Deserialize<'de> for RawMachineConfig
impl<'de> Deserialize<'de> for RawMachineConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<RawMachineConfig> for MachineConfig
impl TryFrom<RawMachineConfig> for MachineConfig
Auto Trait Implementations§
impl Freeze for RawMachineConfig
impl RefUnwindSafe for RawMachineConfig
impl Send for RawMachineConfig
impl Sync for RawMachineConfig
impl Unpin for RawMachineConfig
impl UnsafeUnpin for RawMachineConfig
impl UnwindSafe for RawMachineConfig
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