pub struct DomainConfig { /* private fields */ }
Implementations§
Source§impl DomainConfig
impl DomainConfig
pub fn new() -> Self
pub fn platform(&mut self, platform: PlatformDomainConfig) -> &mut Self
pub fn get_platform(&self) -> &Option<PlatformDomainConfig>
pub fn name(&mut self, name: impl AsRef<str>) -> &mut Self
pub fn get_name(&self) -> &Option<String>
pub fn backend_domid(&mut self, backend_domid: u32) -> &mut Self
pub fn get_backend_domid(&self) -> u32
pub fn add_channel(&mut self, channel: ChannelDeviceConfig) -> &mut Self
pub fn get_channels(&self) -> &Vec<ChannelDeviceConfig>
pub fn add_vif(&mut self, vif: VifDeviceConfig) -> &mut Self
pub fn get_vifs(&self) -> &Vec<VifDeviceConfig>
pub fn add_vbd(&mut self, vbd: VbdDeviceConfig) -> &mut Self
pub fn get_vbds(&self) -> &Vec<VbdDeviceConfig>
pub fn add_fs9p(&mut self, fs9p: Fs9pDeviceConfig) -> &mut Self
pub fn get_fs9ps(&self) -> &Vec<Fs9pDeviceConfig>
pub fn pci(&mut self, pci: PciRootDeviceConfig) -> &mut Self
pub fn get_pci(&self) -> &Option<PciRootDeviceConfig>
pub fn add_extra_key( &mut self, key: impl AsRef<str>, value: impl ToString, ) -> &mut Self
pub fn get_extra_keys(&self) -> &HashMap<String, String>
pub fn add_rw_path(&mut self, path: impl AsRef<str>) -> &mut Self
pub fn get_rw_paths(&self) -> &Vec<String>
pub fn start(&mut self, start: bool) -> &mut Self
pub fn get_start(&self) -> bool
pub fn done(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DomainConfig
impl RefUnwindSafe for DomainConfig
impl Send for DomainConfig
impl Sync for DomainConfig
impl Unpin for DomainConfig
impl UnwindSafe for DomainConfig
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