pub struct PluginDescriptor { /* private fields */ }
Expand description

Represents Plugin descriptor for plugins.

Implementations§

Creates a new plugin descriptor.

Arguments
  • name - The name of the plugin.

  • desc - The description of the plugin.

  • version - The version of the plugin.

Error

If fail to create the plugin descriptor, then an error will be returned.

Adds a module descriptor to the plugin descriptor.

Arguments
  • name - The name of the module.

  • desc - The description of the module.

  • f - The function that creates a module instance for the plugin.

Error

If fail to add the module descriptor, then an error will be returned.

Adds a program option to the plugin descriptor.

Arguments
  • name - The name of the program option.

  • desc - The description of the program option.

  • ty - The type of the program option.

Error

If fail to add the program option, then an error will be returned.

Returns the raw pointer to the inner WasmEdge_PluginDescriptor.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.