pub struct CloudHypervisorInstance { /* private fields */ }
Implementations§
Source§impl CloudHypervisorInstance
impl CloudHypervisorInstance
pub fn new(bin_path: PathBuf) -> Self
pub fn cpus(&mut self, cpus: Cpus) -> &mut Self
pub fn platform(&mut self, platform: Platform) -> &mut Self
pub fn memory(&mut self, memory: Memory) -> &mut Self
pub fn memory_zone(&mut self, memory_zone: MemoryZone) -> &mut Self
pub fn firmware(&mut self, firmware: PathBuf) -> &mut Self
pub fn kernel(&mut self, kernel: PathBuf) -> &mut Self
pub fn initramfs(&mut self, initramfs: PathBuf) -> &mut Self
pub fn cmdline(&mut self, cmdline: String) -> &mut Self
pub fn rate_limit_group( &mut self, rate_limit_group: RateLimitGroup, ) -> &mut Self
pub fn disk(&mut self, disk: Disk) -> &mut Self
pub fn net(&mut self, net: Net) -> &mut Self
pub fn rng(&mut self, rng: Rng) -> &mut Self
pub fn balloon(&mut self, balloon: Balloon) -> &mut Self
pub fn fs(&mut self, fs: Fs) -> &mut Self
pub fn pmem(&mut self, pmem: Pmem) -> &mut Self
pub fn serial(&mut self, serial: Serial) -> &mut Self
pub fn console(&mut self, console: Console) -> &mut Self
pub fn device(&mut self, device: Device) -> &mut Self
pub fn user_device(&mut self, user_device: UserDevice) -> &mut Self
pub fn vdpa(&mut self, vdpa: Vdpa) -> &mut Self
pub fn vsock(&mut self, vsock: Vsock) -> &mut Self
pub fn pvpanic(&mut self, pvpanic: bool) -> &mut Self
pub fn numa(&mut self, numa: Numa) -> &mut Self
pub fn watchdog(&mut self, watchdog: bool) -> &mut Self
pub fn log_file(&mut self, log_file: PathBuf) -> &mut Self
pub fn api_socket( &mut self, api_socket: PathOrFileDescriptorOption, ) -> &mut Self
pub fn event_monitor( &mut self, event_monitor: PathOrFileDescriptorOption, ) -> &mut Self
pub fn restore(&mut self, restore: Restore) -> &mut Self
pub fn seccomp(&mut self, seccomp: SecComp) -> &mut Self
pub fn tpm(&mut self, tpm: PathBuf) -> &mut Self
pub fn sgx_epc(&mut self, sgx_epc: SgxEpc) -> &mut Self
pub fn debug_console(&mut self, debug_console: DebugConsole) -> &mut Self
pub fn v(&mut self) -> &mut Self
Trait Implementations§
Source§impl Clone for CloudHypervisorInstance
impl Clone for CloudHypervisorInstance
Source§fn clone(&self) -> CloudHypervisorInstance
fn clone(&self) -> CloudHypervisorInstance
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 CloudHypervisorInstance
impl Debug for CloudHypervisorInstance
Source§impl Default for CloudHypervisorInstance
impl Default for CloudHypervisorInstance
Source§fn default() -> CloudHypervisorInstance
fn default() -> CloudHypervisorInstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudHypervisorInstance
impl<'de> Deserialize<'de> for CloudHypervisorInstance
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 PartialEq for CloudHypervisorInstance
impl PartialEq for CloudHypervisorInstance
Source§impl Serialize for CloudHypervisorInstance
impl Serialize for CloudHypervisorInstance
Source§impl ToCommand for CloudHypervisorInstance
impl ToCommand for CloudHypervisorInstance
fn to_command(&self) -> Vec<String>
fn to_single_command(&self) -> String
impl Eq for CloudHypervisorInstance
impl StructuralPartialEq for CloudHypervisorInstance
Auto Trait Implementations§
impl Freeze for CloudHypervisorInstance
impl RefUnwindSafe for CloudHypervisorInstance
impl Send for CloudHypervisorInstance
impl Sync for CloudHypervisorInstance
impl Unpin for CloudHypervisorInstance
impl UnwindSafe for CloudHypervisorInstance
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