pub struct PluginManager {}
Expand description

Defines the APIs for loading plugins and check the basic information of the loaded plugins.

Implementations§

Load plugins from the default path. The default plugin path could be one of the following:

  • The environment variable “WASMEDGE_PLUGIN_PATH”.

  • The ../plugin/ directory related to the WasmEdge installation path.

  • The wasmedge/ directory under the library path if the WasmEdge is installed under the “/usr”.

Load a single or multiple plugins from a given path.

  • If the path is pointing at a file , then it indicates that a single plugin will be loaded from the file.

  • If the path is pointing at a directory, then the method will load plugins from the files in the directory.

Argument
  • param - A path to a plugin file or a directory holding plugin files.
Error

Returns the count of loaded plugins.

Returns the names of all loaded plugins.

Returns the target plugin by its name.

Argument
  • name - The name of the target plugin.

Initializes the wasmedge_process plugin module instance with the parameters.

Arguments
  • allowed_cmds - A white list of commands.

  • allowed - Determines if wasmedge_process is allowed to execute all commands on the white list.

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.