pub struct LxcClient<T> { /* private fields */ }Implementations§
Source§impl<T> LxcClient<T>where
T: Client,
impl<T> LxcClient<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 container.
You need ‘VM.Allocate’ permission on /vms/{vmid} or on the VM pool /pool/{pool}. For restore, it is enough if the user has ‘VM.Backup’ permission and the VM already exists. You also need ‘Datastore.AllocateSpace’ permissions on the storage. For privileged containers, ‘Sys.Modify’ permissions on ‘/’ are required.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LxcClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for LxcClient<T>where
T: RefUnwindSafe,
impl<T> Send for LxcClient<T>where
T: Send,
impl<T> Sync for LxcClient<T>where
T: Sync,
impl<T> Unpin for LxcClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for LxcClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LxcClient<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