Trait wasmtime_environ::settings::Configurable[][src]

pub trait Configurable {
    fn set(&mut self, name: &str, value: &str) -> Result<(), SetError>;
fn enable(&mut self, name: &str) -> Result<(), SetError>; }
Expand description

A string-based configurator for settings groups.

The Configurable protocol allows settings to be modified by name before a finished Flags struct is created.

Required methods

fn set(&mut self, name: &str, value: &str) -> Result<(), SetError>[src]

Set the string value of any setting by name.

This can set any type of setting whether it is numeric, boolean, or enumerated.

fn enable(&mut self, name: &str) -> Result<(), SetError>[src]

Enable a boolean setting or apply a preset.

If the identified setting isn’t a boolean or a preset, a BadType error is returned.

Implementors

impl Configurable for wasmtime_environ::isa::Builder[src]

pub fn set(&mut self, name: &str, value: &str) -> Result<(), SetError>[src]

pub fn enable(&mut self, name: &str) -> Result<(), SetError>[src]

impl Configurable for wasmtime_environ::settings::Builder[src]

pub fn enable(&mut self, name: &str) -> Result<(), SetError>[src]

pub fn set(&mut self, name: &str, value: &str) -> Result<(), SetError>[src]