pub struct PluginManager {}
Expand description

Defines the API to manage plugins.

Implementations§

Load plugins from the given path.

  • If the path is not given, then the default plugin paths will be used. The default plugin paths are

    • 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”.

  • If the path is given, then

    • 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
  • path - A path to a plugin file or a directory holding plugin files. If None, then the default plugin path will be used.

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.