pub struct VM { /* private fields */ }Implementations§
Source§impl VM
impl VM
pub fn new(name: String, storage: Arc<Box<dyn ConfigStorageHandler>>) -> Self
pub fn set_headless(&mut self, headless: bool)
pub fn headless(&self) -> bool
pub fn name(&self) -> String
pub fn cdrom(&self) -> Option<PathBuf>
pub fn set_cdrom(&mut self, cdrom: PathBuf)
pub fn extra_disk(&self) -> Option<PathBuf>
pub fn set_extra_disk(&mut self, extra_disk: PathBuf)
pub fn config(&self) -> Configuration
pub fn supervisor(&self) -> Arc<Box<dyn SupervisorHandler>>
pub fn load_config(&mut self, storage: Arc<Box<dyn ConfigStorageHandler>>)
pub fn save_config( &mut self, storage: Arc<Box<dyn ConfigStorageHandler>>, ) -> Result<()>
pub fn set_config(&mut self, config: Configuration)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VM
impl<'de> Deserialize<'de> for VM
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
impl Eq for VM
impl StructuralPartialEq for VM
Auto Trait Implementations§
impl Freeze for VM
impl RefUnwindSafe for VM
impl Send for VM
impl Sync for VM
impl Unpin for VM
impl UnwindSafe for VM
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.