pub struct QemuClient<T> { /* private fields */ }Implementations§
Source§impl<T> QemuClient<T>where
T: Client,
impl<T> QemuClient<T>where
T: Client,
Source§impl<T> QemuClient<T>where
T: Client,
impl<T> QemuClient<T>where
T: Client,
Sourcepub async fn post(&self, params: PostParams) -> Result<String, T::Error>
pub async fn post(&self, params: PostParams) -> Result<String, T::Error>
Create or restore a virtual machine.
You need ‘VM.Allocate’ permissions on /vms/{vmid} or on the VM pool /pool/{pool}. For restore (option ‘archive’), it is enough if the user has ‘VM.Backup’ permission and the VM already exists. If you create disks you need ‘Datastore.AllocateSpace’ on any used storage.If you use a bridge/vlan, you need ‘SDN.Use’ on any used bridge/vlan.
Source§impl<T> QemuClient<T>where
T: Client,
impl<T> QemuClient<T>where
T: Client,
pub fn vmid(&self, vmid: VmId) -> VmidClient<T>
Trait Implementations§
Source§impl<T: Clone> Clone for QemuClient<T>
impl<T: Clone> Clone for QemuClient<T>
Source§fn clone(&self) -> QemuClient<T>
fn clone(&self) -> QemuClient<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for QemuClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for QemuClient<T>where
T: RefUnwindSafe,
impl<T> Send for QemuClient<T>where
T: Send,
impl<T> Sync for QemuClient<T>where
T: Sync,
impl<T> Unpin for QemuClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for QemuClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for QemuClient<T>where
T: UnwindSafe,
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