Traits§

  • Plugin is implemented by a plugin library for one or more types. As you need additional callbacks, they can be defined here. These are first class Rust trait objects, so you have the full flexibility of that system. The main thing you’ll lose access to is generics, but that’s expected with a plugin system
  • The PluginRegistrar is defined by the application and passed to plugin_entry. It’s used for a plugin module to register itself with the application.