pub struct Vm { /* private fields */ }Implementations§
Source§impl Vm
impl Vm
pub fn name(&self) -> &str
pub async fn start(&self) -> Result<()>
pub async fn info(&self) -> Result<VmInfo>
pub async fn status(&self) -> Result<InstanceStatus>
pub async fn wait_for_ssh(&self) -> Result<VmInfo>
pub async fn exec<I, S>(&self, command: I) -> Result<ExecOutput>
pub async fn exec_checked<I, S>(&self, command: I) -> Result<ExecOutput>
pub async fn stop(&self) -> Result<()>
pub async fn delete(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Vm
impl !RefUnwindSafe for Vm
impl Send for Vm
impl Sync for Vm
impl Unpin for Vm
impl UnsafeUnpin 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