pub struct VmConfig {
pub balloon: Option<Balloon>,
pub boot_source: Option<BootSource>,
pub drives: Vec<Drive>,
pub machine_config: Option<MachineConfig>,
pub network_interfaces: Vec<NetworkInterface>,
}
Expand description
Represents the configuration of a Firecracker microVM, including its boot source, drives, network interfaces, and machine configuration.
Fields§
§balloon: Option<Balloon>
Balloon configuration
boot_source: Option<BootSource>
Boot source configuration
drives: Vec<Drive>
List of drives
machine_config: Option<MachineConfig>
Machine configuration
network_interfaces: Vec<NetworkInterface>
List of network interfaces
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmConfig
impl<'de> Deserialize<'de> for VmConfig
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<'v_a> ValidateArgs<'v_a> for VmConfig
impl<'v_a> ValidateArgs<'v_a> for VmConfig
Auto Trait Implementations§
impl Freeze for VmConfig
impl RefUnwindSafe for VmConfig
impl Send for VmConfig
impl Sync for VmConfig
impl Unpin for VmConfig
impl UnwindSafe for VmConfig
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