pub struct ConfigBuilder { /* private fields */ }
Expand description
Defines a builder for creating a Config.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn new(options: CommonConfigOptions) -> Self
pub fn new(options: CommonConfigOptions) -> Self
Creates a new ConfigBuilder with the given CommonConfigOptions setting.
Sourcepub fn with_statistics_config(self, options: StatisticsConfigOptions) -> Self
pub fn with_statistics_config(self, options: StatisticsConfigOptions) -> Self
Sets the StatisticsConfigOptions for the ConfigBuilder.
§Argument
options
specifies the StatisticsConfigOptions settings to set.
Sourcepub fn with_runtime_config(self, options: RuntimeConfigOptions) -> Self
pub fn with_runtime_config(self, options: RuntimeConfigOptions) -> Self
Sets the RuntimeConfigOptions for the ConfigBuilder.
§Argument
options
specifies the RuntimeConfigOptions settings to set.
Sourcepub fn with_compiler_config(self, options: CompilerConfigOptions) -> Self
Available on crate feature aot
only.
pub fn with_compiler_config(self, options: CompilerConfigOptions) -> Self
aot
only.Sets the CompilerConfigOptions for the ConfigBuilder.
§Argument
options
specifies the CompilerConfigOptions settings to set.
Sourcepub fn build(self) -> WasmEdgeResult<Config>
pub fn build(self) -> WasmEdgeResult<Config>
Creates a new Config from the ConfigBuilder.
§Errors
If fail to create a Config, then an error is returned.
Trait Implementations§
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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