pub struct SpawnOpts {
pub use_kvm: bool,
pub memory_mb: u32,
pub cpus: u32,
pub disk_gb: u32,
}Expand description
Options that affect how the VM is launched.
Fields§
§use_kvm: bool§memory_mb: u32§cpus: u32§disk_gb: u32Virtual disk size in GB. The disk is copy-on-write so actual host usage is only the delta from the base image.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpawnOpts
impl RefUnwindSafe for SpawnOpts
impl Send for SpawnOpts
impl Sync for SpawnOpts
impl Unpin for SpawnOpts
impl UnsafeUnpin for SpawnOpts
impl UnwindSafe for SpawnOpts
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