pub struct WasmInterfaceDescriptor {
pub interface_name: &'static str,
pub interface_export: &'static str,
pub interface_hash: u64,
pub methods: &'static [WasmMethodDesc],
}Expand description
Static descriptor for one fidius interface, consumed by the WASM loader to validate and dispatch into a component.
Fields§
§interface_name: &'static strTrait name, for diagnostics.
interface_export: &'static strFully-qualified exported interface the component must provide, e.g.
"fidius:greeter/greeter@1.0.0". The host navigates to this interface’s
exports to dispatch methods.
interface_hash: u64Same hash the cdylib path bakes into its PluginDescriptor. The
component’s fidius-interface-hash export must return this.
methods: &'static [WasmMethodDesc]Methods in declaration order — index here lines up with the cdylib vtable index for the same trait.
Trait Implementations§
Source§impl Clone for WasmInterfaceDescriptor
impl Clone for WasmInterfaceDescriptor
Source§fn clone(&self) -> WasmInterfaceDescriptor
fn clone(&self) -> WasmInterfaceDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WasmInterfaceDescriptor
Auto Trait Implementations§
impl Freeze for WasmInterfaceDescriptor
impl RefUnwindSafe for WasmInterfaceDescriptor
impl Send for WasmInterfaceDescriptor
impl Sync for WasmInterfaceDescriptor
impl Unpin for WasmInterfaceDescriptor
impl UnsafeUnpin for WasmInterfaceDescriptor
impl UnwindSafe for WasmInterfaceDescriptor
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