pub struct MemoryConfig {
pub startup_bytes: u64,
pub dynamic_memory_range: Option<(u64, u64)>,
}Expand description
Common memory configuration information for the VM.
Fields§
§startup_bytes: u64Specifies the amount of memory, in bytes, to assign to the virtual machine.
dynamic_memory_range: Option<(u64, u64)>Specifies the minimum and maximum amount of dynamic memory, in bytes.
Dynamic memory will be disabled if this is None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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