pub trait DynamicPluginExt {
// Required method
unsafe fn load_plugin<P: AsRef<OsStr>>(&mut self, path: P) -> &mut Self;
}
👎Deprecated since 0.14.0: The current dynamic plugin system is unsound and will be removed in 0.15.
Expand description
An extension trait for App
that allows loading dynamic plugins.
Required Methods§
Sourceunsafe fn load_plugin<P: AsRef<OsStr>>(&mut self, path: P) -> &mut Self
👎Deprecated since 0.14.0: The current dynamic plugin system is unsound and will be removed in 0.15.
unsafe fn load_plugin<P: AsRef<OsStr>>(&mut self, path: P) -> &mut Self
Dynamically links a plugin at the given path, registering the plugin.
For more details, see dynamically_load_plugin
.
§Safety
See dynamically_load_plugin
’s safety section.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl DynamicPluginExt for App
impl DynamicPluginExt for App
Source§unsafe fn load_plugin<P: AsRef<OsStr>>(&mut self, path: P) -> &mut Self
unsafe fn load_plugin<P: AsRef<OsStr>>(&mut self, path: P) -> &mut Self
👎Deprecated since 0.14.0: The current dynamic plugin system is unsound and will be removed in 0.15.