Struct wasmi::StackRecycler [−][src]
Used to recycle stacks instead of allocating them repeatedly.
Implementations
impl StackRecycler
[src]
pub fn with_limits(value_stack_limit: usize, call_stack_limit: usize) -> Self
[src]
Limit stacks created by this recycler to
value_stack_limit
bytes for values andcall_stack_limit
levels for calls.
pub fn clear(&mut self)
[src]
Clears any values left on the stack to avoid leaking them to future export invocations.
This is a secondary defense to prevent modules from exploiting faulty stack handling in the interpreter.
Do note that there are additional channels that can leak information into an untrusted module.
Trait Implementations
impl Default for StackRecycler
[src]
Auto Trait Implementations
impl !RefUnwindSafe for StackRecycler
impl !Send for StackRecycler
impl !Sync for StackRecycler
impl Unpin for StackRecycler
impl !UnwindSafe for StackRecycler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,