pub struct PluginRegistry { /* private fields */ }Expand description
Process-wide plugin set: datatype map + hooks, registered at startup.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Sourcepub fn register(&mut self, plugin: RegisteredPlugin) -> Result<(), ComputeError>
pub fn register(&mut self, plugin: RegisteredPlugin) -> Result<(), ComputeError>
Register plugin. Errors when its EncodePlugin claims a datatype
another plugin already owns.
Sourcepub fn plugin_for_datatype(
&self,
datatype: &NamedNode,
) -> Option<&dyn EncodePlugin>
pub fn plugin_for_datatype( &self, datatype: &NamedNode, ) -> Option<&dyn EncodePlugin>
Plugin index owning datatype, if any.
Sourcepub fn write_plugins(&self) -> impl Iterator<Item = &dyn WritePlugin>
pub fn write_plugins(&self) -> impl Iterator<Item = &dyn WritePlugin>
Every registered write plugin (registration order).
Sourcepub fn planner_plugins(&self) -> impl Iterator<Item = &dyn PlannerPlugin>
pub fn planner_plugins(&self) -> impl Iterator<Item = &dyn PlannerPlugin>
Every registered planner plugin (registration order).
Sourcepub fn executor_for(&self, plugin_id: &str) -> Option<&dyn ExecutorPlugin>
pub fn executor_for(&self, plugin_id: &str) -> Option<&dyn ExecutorPlugin>
Executor plugin minted by plugin_id, if any.
Trait Implementations§
Source§impl Default for PluginRegistry
impl Default for PluginRegistry
Source§fn default() -> PluginRegistry
fn default() -> PluginRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginRegistry
impl !RefUnwindSafe for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin for PluginRegistry
impl !UnwindSafe for PluginRegistry
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].