Struct wasmedge_sdk::config::RuntimeConfigOptions
source · pub struct RuntimeConfigOptions { /* private fields */ }
Expand description
Defines a group of runtime configuration options.
RuntimeConfigOptions is used to set the runtime configuration options, which are
Implementations§
source§impl RuntimeConfigOptions
impl RuntimeConfigOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance of RuntimeConfigOptions.
sourcepub fn max_memory_pages(self, count: u32) -> Self
pub fn max_memory_pages(self, count: u32) -> Self
Sets the maximum number of the memory pages available.
Argument
count
specifies the page count (64KB per page).
Trait Implementations§
source§impl Clone for RuntimeConfigOptions
impl Clone for RuntimeConfigOptions
source§fn clone(&self) -> RuntimeConfigOptions
fn clone(&self) -> RuntimeConfigOptions
Returns a copy 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 RuntimeConfigOptions
impl Debug for RuntimeConfigOptions
source§impl Default for RuntimeConfigOptions
impl Default for RuntimeConfigOptions
impl Copy for RuntimeConfigOptions
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeConfigOptions
impl Send for RuntimeConfigOptions
impl Sync for RuntimeConfigOptions
impl Unpin for RuntimeConfigOptions
impl UnwindSafe for RuntimeConfigOptions
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