pub struct StoreLimits { /* private fields */ }
Expand description

Provides limits for a Store.

This type is created with a StoreLimitsBuilder and is typically used in conjunction with Store::limiter.

This is a convenience type included to avoid needing to implement the ResourceLimiter trait if your use case fits in the static configuration that this StoreLimits provides.

Trait Implementations

Returns the “default value” for a type. Read more

Notifies the resource limiter that an instance’s linear memory has been requested to grow. Read more

Notifies the resource limiter that an instance’s table has been requested to grow. Read more

The maximum number of instances that can be created for a Store. Read more

The maximum number of tables that can be created for a Store. Read more

The maximum number of linear memories that can be created for a Store Read more

Notifies the resource limiter that growing a linear memory, permitted by the memory_growing method, has failed. Read more

Notifies the resource limiter that growing a linear memory, permitted by the table_growing method, has failed. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more