pub struct VmSpec {
pub name: String,
pub release: Option<String>,
pub arch: Option<GuestArch>,
pub accel: Option<AccelMode>,
pub cpus: Option<u8>,
pub memory_mib: Option<u32>,
pub disk_gib: Option<u32>,
pub ssh_key: Option<PathBuf>,
pub forwards: Vec<PortForward>,
pub timeout_secs: Option<u64>,
pub cloud_init_user_data: Option<PathBuf>,
pub cloud_init_network_config: Option<PathBuf>,
}Fields§
§name: String§release: Option<String>§arch: Option<GuestArch>§accel: Option<AccelMode>§cpus: Option<u8>§memory_mib: Option<u32>§disk_gib: Option<u32>§ssh_key: Option<PathBuf>§forwards: Vec<PortForward>§timeout_secs: Option<u64>§cloud_init_user_data: Option<PathBuf>§cloud_init_network_config: Option<PathBuf>Implementations§
Source§impl VmSpec
impl VmSpec
pub fn new(name: impl Into<String>) -> Self
pub fn release(self, release: impl Into<String>) -> Self
pub fn arch(self, arch: GuestArch) -> Self
pub fn accel(self, accel: AccelMode) -> Self
pub fn cpus(self, cpus: u8) -> Self
pub fn memory_mib(self, memory_mib: u32) -> Self
pub fn disk_gib(self, disk_gib: u32) -> Self
pub fn ssh_key(self, ssh_key: impl AsRef<Path>) -> Self
pub fn forward(self, host: u16, guest: u16) -> Self
pub fn timeout_secs(self, timeout_secs: u64) -> Self
pub fn cloud_init_user_data(self, path: impl AsRef<Path>) -> Self
pub fn cloud_init_network_config(self, path: impl AsRef<Path>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VmSpec
impl RefUnwindSafe for VmSpec
impl Send for VmSpec
impl Sync for VmSpec
impl Unpin for VmSpec
impl UnsafeUnpin for VmSpec
impl UnwindSafe for VmSpec
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