Struct wasmtime_runtime::InstanceLimits
source · pub struct InstanceLimits {
pub count: u32,
pub size: usize,
pub tables: u32,
pub table_elements: u32,
pub memories: u32,
pub memory_pages: u64,
}
Expand description
Instance-related limit configuration for pooling.
More docs on this can be found at wasmtime::PoolingAllocationConfig
.
Fields§
§count: u32
Maximum instances to support
size: usize
Maximum size of instance VMContext
tables: u32
Maximum number of tables per instance
table_elements: u32
Maximum number of table elements per table
memories: u32
Maximum number of linear memories per instance
memory_pages: u64
Maximum number of wasm pages for each linear memory.
Trait Implementations§
source§impl Clone for InstanceLimits
impl Clone for InstanceLimits
source§fn clone(&self) -> InstanceLimits
fn clone(&self) -> InstanceLimits
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 InstanceLimits
impl Debug for InstanceLimits
source§impl Default for InstanceLimits
impl Default for InstanceLimits
impl Copy for InstanceLimits
Auto Trait Implementations§
impl Freeze for InstanceLimits
impl RefUnwindSafe for InstanceLimits
impl Send for InstanceLimits
impl Sync for InstanceLimits
impl Unpin for InstanceLimits
impl UnwindSafe for InstanceLimits
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)