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: MemoryConfig
The Wasmtime memory configuration to use.
strategy: InstanceAllocationStrategy
Configuration for the instance allocation strategy to use.
compiler_strategy: CompilerStrategy
Configuration for the compiler to use.
async_config: AsyncConfig
Configuration 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§fn clone(&self) -> WasmtimeConfig
fn clone(&self) -> WasmtimeConfig
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 WasmtimeConfig
impl Debug for WasmtimeConfig
Source§impl Hash for WasmtimeConfig
impl Hash for WasmtimeConfig
Source§impl PartialEq for WasmtimeConfig
impl PartialEq for WasmtimeConfig
impl Eq 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 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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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<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<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