[−][src]Struct kkcloud_framework::model::Vm
Infomations about a VM instance.
Fields
id: IdUUID of this VM
name: Option<String>Name of the VM.
engine: Arc<dyn VmEngine>Created by which engine.
template: Arc<VmTemplate>Template of runtime_image, that is,
the runtime image is created based on the template.
runtime_image: StringRuntime image of Vm.
Use 'String' instead of 'PathBuf', because
runtime_image may not be a regular file path,
such as ZFS stroage.
E.g. zroot/kk/VmId
net_kind: NetKindNetwork kind of this VM.
snapshots: HashMap<String, Snapshot>SnapshotName => Snapshot
latest_meta: Option<PathBuf>The latest cached config-file.
state: VmStateInfo about the state of VM.
resource: VmResourceInfo about the resource of VM.
addr: NetAddrUsually an 'IP' or a 'domain url'.
Only meaningful from the perspective of the client, to indicate how to connect to it from the client.
This has different meanings with the ip_addr in VmResource.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Vm[src]
impl Send for Vm[src]
impl Sync for Vm[src]
impl Unpin for Vm[src]
impl !UnwindSafe for Vm[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,