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.
The default options are:
- max_memory_pages: 65536,
- allow_afunix: false,
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
countspecifies the page count (64KB per page).
Sourcepub fn allow_afunix(self, enable: bool) -> Self
pub fn allow_afunix(self, enable: bool) -> Self
Allows or disallows the use of AF_UNIX sockets in the WASI socket implementation.
§Argument
enablespecifies if the option turns on or not.
Trait Implementations§
Source§impl Clone for RuntimeConfigOptions
impl Clone for RuntimeConfigOptions
impl Copy for RuntimeConfigOptions
Source§impl Debug for RuntimeConfigOptions
impl Debug for RuntimeConfigOptions
Auto Trait Implementations§
impl Freeze for RuntimeConfigOptions
impl RefUnwindSafe for RuntimeConfigOptions
impl Send for RuntimeConfigOptions
impl Sync for RuntimeConfigOptions
impl Unpin for RuntimeConfigOptions
impl UnsafeUnpin 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