Struct wiggle::wasmtime_crate::StoreLimits
source · [−]pub struct StoreLimits { /* private fields */ }
Expand description
Provides limits for a Store
.
Trait Implementations
sourceimpl Default for StoreLimits
impl Default for StoreLimits
sourcepub fn default() -> StoreLimits
pub fn default() -> StoreLimits
Returns the “default value” for a type. Read more
sourceimpl ResourceLimiter for StoreLimits
impl ResourceLimiter for StoreLimits
sourcepub fn memory_growing(
&mut self,
_current: usize,
desired: usize,
_maximum: Option<usize>
) -> bool
pub fn memory_growing(
&mut self,
_current: usize,
desired: usize,
_maximum: Option<usize>
) -> bool
Notifies the resource limiter that an instance’s linear memory has been requested to grow. Read more
sourcepub fn table_growing(
&mut self,
_current: u32,
desired: u32,
_maximum: Option<u32>
) -> bool
pub fn table_growing(
&mut self,
_current: u32,
desired: u32,
_maximum: Option<u32>
) -> bool
Notifies the resource limiter that an instance’s table has been requested to grow. Read more
sourcepub fn instances(&self) -> usize
pub fn instances(&self) -> usize
The maximum number of instances that can be created for a Store
. Read more
sourcepub fn tables(&self) -> usize
pub fn tables(&self) -> usize
The maximum number of tables that can be created for a Store
. Read more
sourcepub fn memories(&self) -> usize
pub fn memories(&self) -> usize
The maximum number of linear memories that can be created for a Store
Read more
sourcefn memory_grow_failed(&mut self, _error: &Error)
fn memory_grow_failed(&mut self, _error: &Error)
Notifies the resource limiter that growing a linear memory, permitted by
the memory_growing
method, has failed. Read more
sourcefn table_grow_failed(&mut self, _error: &Error)
fn table_grow_failed(&mut self, _error: &Error)
Notifies the resource limiter that growing a linear memory, permitted by
the table_growing
method, has failed. Read more
Auto Trait Implementations
impl RefUnwindSafe for StoreLimits
impl Send for StoreLimits
impl Sync for StoreLimits
impl Unpin for StoreLimits
impl UnwindSafe for StoreLimits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more