pub struct FullVmConfiguration {
pub balloon: Option<Balloon>,
pub drives: Option<Vec<Drive>>,
pub boot_source: Option<BootSource>,
pub logger: Option<Logger>,
pub machine_config: Option<MachineConfiguration>,
pub metrics: Option<Metrics>,
pub mmds_config: Option<MmdsConfig>,
pub network_interfaces: Option<Vec<NetworkInterface>>,
pub vsock: Option<Vsock>,
}Fields§
§balloon: Option<Balloon>§drives: Option<Vec<Drive>>Configurations for all block devices.
boot_source: Option<BootSource>§logger: Option<Logger>§machine_config: Option<MachineConfiguration>§metrics: Option<Metrics>§mmds_config: Option<MmdsConfig>§network_interfaces: Option<Vec<NetworkInterface>>Configurations for all net devices.
vsock: Option<Vsock>Implementations§
Source§impl FullVmConfiguration
impl FullVmConfiguration
pub fn with_balloon(self, balloon: &Balloon) -> Self
pub fn add_drive(self, drive: &Drive) -> Self
pub fn with_boot_source(self, boot_source: &BootSource) -> Self
pub fn with_logger(self, logger: &Logger) -> Self
pub fn with_machine_config(self, machine_config: &MachineConfiguration) -> Self
pub fn with_metrics(self, metrics: &Metrics) -> Self
pub fn with_mmds_config(self, mmds_config: &MmdsConfig) -> Self
pub fn add_network_interface(self, network_interface: &NetworkInterface) -> Self
pub fn with_vsock(self, vsock: &Vsock) -> Self
Trait Implementations§
Source§impl Clone for FullVmConfiguration
impl Clone for FullVmConfiguration
Source§fn clone(&self) -> FullVmConfiguration
fn clone(&self) -> FullVmConfiguration
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 FullVmConfiguration
impl Debug for FullVmConfiguration
Source§impl Default for FullVmConfiguration
impl Default for FullVmConfiguration
Source§impl<'de> Deserialize<'de> for FullVmConfiguration
impl<'de> Deserialize<'de> for FullVmConfiguration
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 Hash for FullVmConfiguration
impl Hash for FullVmConfiguration
Source§impl Ord for FullVmConfiguration
impl Ord for FullVmConfiguration
Source§fn cmp(&self, other: &FullVmConfiguration) -> Ordering
fn cmp(&self, other: &FullVmConfiguration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FullVmConfiguration
impl PartialEq for FullVmConfiguration
Source§impl PartialOrd for FullVmConfiguration
impl PartialOrd for FullVmConfiguration
Source§impl Serialize for FullVmConfiguration
impl Serialize for FullVmConfiguration
impl Eq for FullVmConfiguration
impl StructuralPartialEq for FullVmConfiguration
Auto Trait Implementations§
impl Freeze for FullVmConfiguration
impl RefUnwindSafe for FullVmConfiguration
impl Send for FullVmConfiguration
impl Sync for FullVmConfiguration
impl Unpin for FullVmConfiguration
impl UnwindSafe for FullVmConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more