Trait gear_core::message::WasmEntryPoint
source · pub trait WasmEntryPoint: Sized {
// Required methods
fn as_entry(&self) -> &str;
fn try_from_entry(entry: &str) -> Option<Self>;
// Provided method
fn try_into_kind(&self) -> Option<DispatchKind> { ... }
}
Expand description
Trait defining type could be used as entry point for a wasm module.
Required Methods§
sourcefn try_from_entry(entry: &str) -> Option<Self>
fn try_from_entry(entry: &str) -> Option<Self>
Converting entry point name into self object, if possible.
Provided Methods§
sourcefn try_into_kind(&self) -> Option<DispatchKind>
fn try_into_kind(&self) -> Option<DispatchKind>
Tries to convert self into DispatchKind
.
Object Safety§
This trait is not object safe.