[−][src]Struct kkcloud_framework::model::VmResource
Info about the resource of VM.
Fields
cpu_num: u16CPU number
mem_size: u32Memory size in MB
disk_size: u32Disk size in MB
ip_addr: IpAddrInner IP address, e.g. '[10,0,0,2]', IP is generated from 'MAC address', use the last three fields of MAC.
mac_addr: MacAddrMAC address, e.g. '[0x82,0x17,0x0d,0x6a,0xbc,0x80]', used to generate the responding IP address.
port_map: HashMap<InnerSockPort, PubSockPort>Ports allocation for NAT, that is: {Private Port within VM} => {Public Port within Host}.
If the type of network is Flatten, this field should be empty(and be ignored).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VmResource[src]
impl Send for VmResource[src]
impl Sync for VmResource[src]
impl Unpin for VmResource[src]
impl UnwindSafe for VmResource[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>,