[][src]Struct vms::Vm

pub struct Vm {
    pub name: String,
    pub vmx: PathBuf,
    pub is_running: bool,
}

Representation of a VM with gathered info from vmrun and the .vmx file

Fields

name: Stringvmx: PathBufis_running: bool

Methods

impl Vm[src]

pub fn from_vmx(vmx: PathBuf) -> Result<Self>[src]

Gather VM info from the .vmx file

pub fn manage(&self, action: Action) -> Result<()>[src]

Run an action using vmrun

Trait Implementations

impl Debug for Vm[src]

Auto Trait Implementations

impl RefUnwindSafe for Vm

impl Send for Vm

impl Sync for Vm

impl Unpin for Vm

impl UnwindSafe for Vm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.