pub struct MachineConfig {
pub ram_bytes: u64,
pub vga_memory_bytes: u64,
pub cpu_hz: u64,
pub command_line: Option<String>,
pub console: ConsoleConfig,
}Fields§
§ram_bytes: u64§vga_memory_bytes: u64§cpu_hz: u64§command_line: Option<String>§console: ConsoleConfigImplementations§
Source§impl MachineConfig
impl MachineConfig
pub fn with_ram_bytes(self, bytes: u64) -> Self
pub fn with_vga_memory_bytes(self, bytes: u64) -> Self
pub fn with_cpu_hz(self, hz: u64) -> Self
pub fn with_command_line(self, command_line: impl Into<String>) -> Self
pub fn with_console(self, console: ConsoleConfig) -> Self
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 (const: unstable) · 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§impl<'de> Deserialize<'de> for MachineConfig
impl<'de> Deserialize<'de> for MachineConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MachineConfig
impl RefUnwindSafe for MachineConfig
impl Send for MachineConfig
impl Sync for MachineConfig
impl Unpin for MachineConfig
impl UnsafeUnpin 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