pub struct MemoryConfig {
pub memory_reservation: Option<u64>,
pub memory_guard_size: Option<u64>,
pub memory_reservation_for_growth: Option<u64>,
pub guard_before_linear_memory: bool,
pub cranelift_enable_heap_access_spectre_mitigations: Option<bool>,
pub memory_init_cow: bool,
pub gc_heap_reservation: Option<u64>,
pub gc_heap_guard_size: Option<u64>,
pub gc_heap_reservation_for_growth: Option<u64>,
pub gc_heap_may_move: Option<bool>,
pub gc_heap_initial_size: Option<u64>,
}Expand description
Represents a normal memory configuration for Wasmtime with the given static and dynamic memory sizes.
Fields§
§memory_reservation: Option<u64>§memory_guard_size: Option<u64>§memory_reservation_for_growth: Option<u64>§guard_before_linear_memory: bool§cranelift_enable_heap_access_spectre_mitigations: Option<bool>§memory_init_cow: bool§gc_heap_reservation: Option<u64>§gc_heap_guard_size: Option<u64>§gc_heap_reservation_for_growth: Option<u64>§gc_heap_may_move: Option<bool>§gc_heap_initial_size: Option<u64>Implementations§
Source§impl MemoryConfig
impl MemoryConfig
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for MemoryConfig
impl<'a> Arbitrary<'a> for MemoryConfig
Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§impl Debug for MemoryConfig
impl Debug for MemoryConfig
impl Eq for MemoryConfig
Source§impl Hash for MemoryConfig
impl Hash for MemoryConfig
Source§impl PartialEq for MemoryConfig
impl PartialEq for MemoryConfig
impl StructuralPartialEq for MemoryConfig
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnsafeUnpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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