pub struct Machine {
pub server: String,
pub mem_mb: u32,
pub cores: u32,
pub disks: Vec<MachineDisk>,
pub medium: Option<String>,
pub cdrom_first: bool,
pub rtc_skew_seconds: i64,
}Expand description
One server’s machine, as the estate describes it at power-on.
Everything is named by the ESTATE’s ids — server and storage uuids — and never by a path: where a disk lives is the engine’s business, so this crate stays free of any hypervisor and of any filesystem layout.
Fields§
§server: StringThe server uuid.
mem_mb: u32§cores: u32§disks: Vec<MachineDisk>The attached disks, boot disk first, each at the size its STORAGE record says now (not the size it was attached at: a resize changes the record).
medium: Option<String>The storage uuid in the cdrom tray, if any. None is an ejected drive.
cdrom_first: booltrue while the CD is first in the boot order (behaviour 17).
rtc_skew_seconds: i64Behaviour 19.
Trait Implementations§
impl Eq for Machine
impl StructuralPartialEq for Machine
Auto Trait Implementations§
impl Freeze for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
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