pub struct PluginLoader { /* private fields */ }Expand description
Plugin loader for discovering and loading plugins
Implementations§
Source§impl PluginLoader
impl PluginLoader
Sourcepub async fn discover_all(&self) -> Result<Vec<PluginDiscoveryResult>>
pub async fn discover_all(&self) -> Result<Vec<PluginDiscoveryResult>>
Discover plugins from all configured paths
Sourcepub async fn discover_in_path(
&self,
path: &str,
) -> Result<Vec<PluginDiscoveryResult>>
pub async fn discover_in_path( &self, path: &str, ) -> Result<Vec<PluginDiscoveryResult>>
Discover plugins in a specific path
Sourcepub async fn load_from_discovery(
&self,
discovery: &PluginDiscoveryResult,
) -> Result<Arc<Box<dyn Plugin>>>
pub async fn load_from_discovery( &self, discovery: &PluginDiscoveryResult, ) -> Result<Arc<Box<dyn Plugin>>>
Load a plugin from a discovery result
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].