pub struct WasmtimeConfig {
pub memory_config: MemoryConfig,
pub strategy: InstanceAllocationStrategy,
pub compiler_strategy: CompilerStrategy,
pub async_config: AsyncConfig,
/* private fields */
}Expand description
Configuration related to wasmtime::Config and the various settings which
can be tweaked from within.
Fields§
§memory_config: MemoryConfigThe Wasmtime memory configuration to use.
strategy: InstanceAllocationStrategyConfiguration for the instance allocation strategy to use.
compiler_strategy: CompilerStrategyConfiguration for the compiler to use.
async_config: AsyncConfigConfiguration for whether wasm is invoked in an async fashion and how it’s cooperatively time-sliced.
Implementations§
Source§impl WasmtimeConfig
impl WasmtimeConfig
Sourcepub fn make_compatible_with(&mut self, other: &Self)
pub fn make_compatible_with(&mut self, other: &Self)
Force self to be a configuration compatible with other. This is
useful for differential execution to avoid unhelpful fuzz crashes when
one engine has a feature enabled and the other does not.
Sourcepub fn update_module_config(
&mut self,
config: &mut ModuleConfig,
_u: &mut Unstructured<'_>,
) -> Result<()>
pub fn update_module_config( &mut self, config: &mut ModuleConfig, _u: &mut Unstructured<'_>, ) -> Result<()>
Updates config to be compatible with self and the other way around
too.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for WasmtimeConfig
impl<'arbitrary> Arbitrary<'arbitrary> for WasmtimeConfig
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for WasmtimeConfig
impl Clone for WasmtimeConfig
Source§impl Debug for WasmtimeConfig
impl Debug for WasmtimeConfig
impl Eq for WasmtimeConfig
Source§impl Hash for WasmtimeConfig
impl Hash for WasmtimeConfig
Source§impl PartialEq for WasmtimeConfig
impl PartialEq for WasmtimeConfig
impl StructuralPartialEq for WasmtimeConfig
Auto Trait Implementations§
impl Freeze for WasmtimeConfig
impl RefUnwindSafe for WasmtimeConfig
impl Send for WasmtimeConfig
impl Sync for WasmtimeConfig
impl Unpin for WasmtimeConfig
impl UnsafeUnpin for WasmtimeConfig
impl UnwindSafe for WasmtimeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more