Trait DynamicPluginExt

Source
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§

Source

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.

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

Source§

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.

Implementors§