Struct gwasm_instrument::stack_limiter::InjectionConfig
source · pub struct InjectionConfig<'a, I, F>where
I: IntoIterator<Item = Instruction>,
I::IntoIter: ExactSizeIterator + Clone,
F: Fn(&FunctionType) -> I,{
pub stack_limit: u32,
pub injection_fn: F,
pub stack_height_export_name: Option<&'a str>,
}
Expand description
Represents the injection configuration. See inject_with_config
for more details.
Fields§
§stack_limit: u32
§injection_fn: F
§stack_height_export_name: Option<&'a str>
Auto Trait Implementations§
impl<'a, I, F> RefUnwindSafe for InjectionConfig<'a, I, F>where
F: RefUnwindSafe,
impl<'a, I, F> Send for InjectionConfig<'a, I, F>where
F: Send,
impl<'a, I, F> Sync for InjectionConfig<'a, I, F>where
F: Sync,
impl<'a, I, F> Unpin for InjectionConfig<'a, I, F>where
F: Unpin,
impl<'a, I, F> UnwindSafe for InjectionConfig<'a, I, F>where
F: UnwindSafe,
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