#[non_exhaustive]pub struct MachineConfig {
pub cpu_count: i32,
/* private fields */
}Expand description
MachineConfig describes the configuration of a machine.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cpu_count: i32The number of CPU’s in the VM instance.
Implementations§
Source§impl MachineConfig
impl MachineConfig
Trait Implementations§
Source§impl Clone for MachineConfig
impl Clone for MachineConfig
Source§fn clone(&self) -> MachineConfig
fn clone(&self) -> MachineConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MachineConfig
impl Debug for MachineConfig
Source§impl Default for MachineConfig
impl Default for MachineConfig
Source§fn default() -> MachineConfig
fn default() -> MachineConfig
Returns the “default value” for a type. Read more
Source§impl Message for MachineConfig
impl Message for MachineConfig
Source§impl PartialEq for MachineConfig
impl PartialEq for MachineConfig
impl StructuralPartialEq for MachineConfig
Auto Trait Implementations§
impl Freeze for MachineConfig
impl RefUnwindSafe for MachineConfig
impl Send for MachineConfig
impl Sync for MachineConfig
impl Unpin for MachineConfig
impl UnwindSafe for MachineConfig
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