pub struct NestedWasmInfo {
pub module_size: usize,
pub import_names: Vec<String>,
pub export_names: Vec<String>,
pub instantiated: bool,
pub fuel_consumed: u64,
}Expand description
Metadata about a nested WASM instantiation.
Fields§
§module_size: usizeSize of the WASM module bytes.
import_names: Vec<String>Names of functions the module imports (expects the host to provide).
export_names: Vec<String>Names of functions the module exports.
instantiated: boolWhether the module was actually instantiated (vs just analyzed).
fuel_consumed: u64Fuel consumed during execution (if instantiated).
Trait Implementations§
Source§impl Clone for NestedWasmInfo
impl Clone for NestedWasmInfo
Source§fn clone(&self) -> NestedWasmInfo
fn clone(&self) -> NestedWasmInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for NestedWasmInfo
impl RefUnwindSafe for NestedWasmInfo
impl Send for NestedWasmInfo
impl Sync for NestedWasmInfo
impl Unpin for NestedWasmInfo
impl UnsafeUnpin for NestedWasmInfo
impl UnwindSafe for NestedWasmInfo
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more