Skip to main content

CloudHypervisorInstance

Struct CloudHypervisorInstance 

Source
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§

Source§

impl Clone for CloudHypervisorInstance

Source§

fn clone(&self) -> CloudHypervisorInstance

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CloudHypervisorInstance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CloudHypervisorInstance

Source§

fn default() -> CloudHypervisorInstance

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CloudHypervisorInstance

Source§

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 Eq for CloudHypervisorInstance

Source§

impl PartialEq for CloudHypervisorInstance

Source§

fn eq(&self, other: &CloudHypervisorInstance) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CloudHypervisorInstance

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CloudHypervisorInstance

Source§

impl ToCommand for CloudHypervisorInstance

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.