pub enum InvokeMethod<'a> {
Export(&'a str),
Table(u32),
TableWithWrapper {
dispatcher_ref: u32,
func: u32,
},
}
Expand description
A method to be used to find the entrypoint when calling into the runtime
Contains variants on how to resolve wasm function that will be invoked.
Variants§
Export(&'a str)
Call function exported with this name.
Located function should have (u32, u32) -> u64 signature.
Table(u32)
Call a function found in the exported table found under the given index.
Located function should have (u32, u32) -> u64 signature.
TableWithWrapper
Fields
Call function by reference from table through a wrapper.
Invoked function (dispatcher_ref
) function
should have (u32, u32, u32) -> u64 signature.
func
will be passed to the invoked function as a first argument.
Trait Implementations§
source§impl<'a> From<&'a str> for InvokeMethod<'a>
impl<'a> From<&'a str> for InvokeMethod<'a>
source§fn from(val: &'a str) -> InvokeMethod<'a>
fn from(val: &'a str) -> InvokeMethod<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InvokeMethod<'a>
impl<'a> Send for InvokeMethod<'a>
impl<'a> Sync for InvokeMethod<'a>
impl<'a> Unpin for InvokeMethod<'a>
impl<'a> UnwindSafe for InvokeMethod<'a>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.