DomainConfig

Struct DomainConfig 

Source
pub struct DomainConfig { /* private fields */ }

Implementations§

Source§

impl DomainConfig

Source

pub fn new() -> Self

Source

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

Source

pub fn get_platform(&self) -> &Option<PlatformDomainConfig>

Source

pub fn name(&mut self, name: impl AsRef<str>) -> &mut Self

Source

pub fn get_name(&self) -> &Option<String>

Source

pub fn backend_domid(&mut self, backend_domid: u32) -> &mut Self

Source

pub fn get_backend_domid(&self) -> u32

Source

pub fn add_channel(&mut self, channel: ChannelDeviceConfig) -> &mut Self

Source

pub fn get_channels(&self) -> &Vec<ChannelDeviceConfig>

Source

pub fn add_vif(&mut self, vif: VifDeviceConfig) -> &mut Self

Source

pub fn get_vifs(&self) -> &Vec<VifDeviceConfig>

Source

pub fn add_vbd(&mut self, vbd: VbdDeviceConfig) -> &mut Self

Source

pub fn get_vbds(&self) -> &Vec<VbdDeviceConfig>

Source

pub fn add_fs9p(&mut self, fs9p: Fs9pDeviceConfig) -> &mut Self

Source

pub fn get_fs9ps(&self) -> &Vec<Fs9pDeviceConfig>

Source

pub fn pci(&mut self, pci: PciRootDeviceConfig) -> &mut Self

Source

pub fn get_pci(&self) -> &Option<PciRootDeviceConfig>

Source

pub fn add_extra_key( &mut self, key: impl AsRef<str>, value: impl ToString, ) -> &mut Self

Source

pub fn get_extra_keys(&self) -> &HashMap<String, String>

Source

pub fn add_rw_path(&mut self, path: impl AsRef<str>) -> &mut Self

Source

pub fn get_rw_paths(&self) -> &Vec<String>

Source

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

Source

pub fn get_start(&self) -> bool

Source

pub fn done(self) -> Self

Trait Implementations§

Source§

impl Default for DomainConfig

Source§

fn default() -> Self

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

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

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.