pub struct CloudHypervisorInstance { /* private fields */ }

Implementations§

source§

impl CloudHypervisorInstance

source

pub fn new(bin_path: PathBuf) -> Self

source

pub fn cpus(&mut self, cpus: Cpus) -> &mut Self

source

pub fn platform(&mut self, platform: Platform) -> &mut Self

source

pub fn memory(&mut self, memory: Memory) -> &mut Self

source

pub fn memory_zone(&mut self, memory_zone: MemoryZone) -> &mut Self

source

pub fn firmware(&mut self, firmware: PathBuf) -> &mut Self

source

pub fn kernel(&mut self, kernel: PathBuf) -> &mut Self

source

pub fn initramfs(&mut self, initramfs: PathBuf) -> &mut Self

source

pub fn cmdline(&mut self, cmdline: String) -> &mut Self

source

pub fn rate_limit_group( &mut self, rate_limit_group: RateLimitGroup ) -> &mut Self

source

pub fn disk(&mut self, disk: Disk) -> &mut Self

source

pub fn net(&mut self, net: Net) -> &mut Self

source

pub fn rng(&mut self, rng: Rng) -> &mut Self

source

pub fn balloon(&mut self, balloon: Balloon) -> &mut Self

source

pub fn fs(&mut self, fs: Fs) -> &mut Self

source

pub fn pmem(&mut self, pmem: Pmem) -> &mut Self

source

pub fn serial(&mut self, serial: Serial) -> &mut Self

source

pub fn console(&mut self, console: Console) -> &mut Self

source

pub fn device(&mut self, device: Device) -> &mut Self

source

pub fn user_device(&mut self, user_device: UserDevice) -> &mut Self

source

pub fn vdpa(&mut self, vdpa: Vdpa) -> &mut Self

source

pub fn vsock(&mut self, vsock: Vsock) -> &mut Self

source

pub fn pvpanic(&mut self, pvpanic: bool) -> &mut Self

source

pub fn numa(&mut self, numa: Numa) -> &mut Self

source

pub fn watchdog(&mut self, watchdog: bool) -> &mut Self

source

pub fn log_file(&mut self, log_file: PathBuf) -> &mut Self

source

pub fn api_socket( &mut self, api_socket: PathOrFileDescriptorOption ) -> &mut Self

source

pub fn event_monitor( &mut self, event_monitor: PathOrFileDescriptorOption ) -> &mut Self

source

pub fn restore(&mut self, restore: Restore) -> &mut Self

source

pub fn seccomp(&mut self, seccomp: SecComp) -> &mut Self

source

pub fn tpm(&mut self, tpm: PathBuf) -> &mut Self

source

pub fn sgx_epc(&mut self, sgx_epc: SgxEpc) -> &mut Self

source

pub fn debug_console(&mut self, debug_console: DebugConsole) -> &mut Self

source

pub fn v(&mut self) -> &mut Self

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.