pub struct PluginLoader;Expand description
Plugin loader for managing plugins
Implementations§
Source§impl PluginLoader
impl PluginLoader
Sourcepub async fn load_plugin(&self, config: &PluginConfig) -> Result<PluginResult>
pub async fn load_plugin(&self, config: &PluginConfig) -> Result<PluginResult>
Load a plugin
Sourcepub async fn load_plugins(
&self,
configs: &[PluginConfig],
) -> Result<Vec<PluginResult>>
pub async fn load_plugins( &self, configs: &[PluginConfig], ) -> Result<Vec<PluginResult>>
Load multiple plugins
Sourcepub fn validate_config(&self, config: &PluginConfig) -> Result<()>
pub fn validate_config(&self, config: &PluginConfig) -> Result<()>
Validate plugin configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginLoader
impl RefUnwindSafe for PluginLoader
impl Send for PluginLoader
impl Sync for PluginLoader
impl Unpin for PluginLoader
impl UnwindSafe for PluginLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more