pub struct PoolingAllocationConfig {Show 20 fields
pub total_component_instances: u32,
pub total_core_instances: u32,
pub total_memories: u32,
pub total_tables: u32,
pub total_stacks: u32,
pub max_memory_size: usize,
pub table_elements: usize,
pub component_instance_size: usize,
pub max_memories_per_component: u32,
pub max_tables_per_component: u32,
pub core_instance_size: usize,
pub max_memories_per_module: u32,
pub max_tables_per_module: u32,
pub table_keep_resident: usize,
pub linear_memory_keep_resident: usize,
pub decommit_batch_size: usize,
pub max_unused_warm_slots: u32,
pub async_stack_keep_resident: usize,
pub memory_protection_keys: MpkEnabled,
pub max_memory_protection_keys: usize,
}
Expand description
Configuration for wasmtime::PoolingAllocationStrategy
.
Fields§
§total_component_instances: u32
§total_core_instances: u32
§total_memories: u32
§total_tables: u32
§total_stacks: u32
§max_memory_size: usize
§table_elements: usize
§component_instance_size: usize
§max_memories_per_component: u32
§max_tables_per_component: u32
§core_instance_size: usize
§max_memories_per_module: u32
§max_tables_per_module: u32
§table_keep_resident: usize
§linear_memory_keep_resident: usize
§decommit_batch_size: usize
§max_unused_warm_slots: u32
§async_stack_keep_resident: usize
§memory_protection_keys: MpkEnabled
§max_memory_protection_keys: usize
Implementations§
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for PoolingAllocationConfig
impl<'a> Arbitrary<'a> for PoolingAllocationConfig
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 PoolingAllocationConfig
impl Clone for PoolingAllocationConfig
Source§fn clone(&self) -> PoolingAllocationConfig
fn clone(&self) -> PoolingAllocationConfig
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 PoolingAllocationConfig
impl Debug for PoolingAllocationConfig
Source§impl Hash for PoolingAllocationConfig
impl Hash for PoolingAllocationConfig
Source§impl PartialEq for PoolingAllocationConfig
impl PartialEq for PoolingAllocationConfig
impl Eq for PoolingAllocationConfig
impl StructuralPartialEq for PoolingAllocationConfig
Auto Trait Implementations§
impl Freeze for PoolingAllocationConfig
impl RefUnwindSafe for PoolingAllocationConfig
impl Send for PoolingAllocationConfig
impl Sync for PoolingAllocationConfig
impl Unpin for PoolingAllocationConfig
impl UnwindSafe for PoolingAllocationConfig
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