pub struct ProcessEngineRegistry { /* private fields */ }Implementations§
Source§impl ProcessEngineRegistry
impl ProcessEngineRegistry
pub fn new() -> Self
pub fn with_engine(self, engine: Arc<dyn ProcessEngine>) -> Self
Sourcepub fn try_with_engine(
self,
engine: Arc<dyn ProcessEngine>,
) -> Result<Self, PluginError>
pub fn try_with_engine( self, engine: Arc<dyn ProcessEngine>, ) -> Result<Self, PluginError>
Register an engine, rejecting a duplicate
ProcessEngine::kind. This is the single enforcement point for unique
engine kinds across everything registered on a runtime host, whether the
engine was wired directly or contributed through the plugin contract.
pub fn get(&self, kind: &str) -> Option<Arc<dyn ProcessEngine>>
Sourcepub fn engines(&self) -> impl Iterator<Item = &Arc<dyn ProcessEngine>>
pub fn engines(&self) -> impl Iterator<Item = &Arc<dyn ProcessEngine>>
Iterate over every registered engine, used by the store-peer coherence validator to sweep engine durability tiers.
pub fn require(&self, kind: &str) -> Result<Arc<dyn ProcessEngine>, PluginError>
pub fn validate_input(&self, input: &ProcessInput) -> Result<(), PluginError>
Trait Implementations§
Source§impl Clone for ProcessEngineRegistry
impl Clone for ProcessEngineRegistry
Source§fn clone(&self) -> ProcessEngineRegistry
fn clone(&self) -> ProcessEngineRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ProcessEngineRegistry
impl Default for ProcessEngineRegistry
Source§fn default() -> ProcessEngineRegistry
fn default() -> ProcessEngineRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessEngineRegistry
impl !UnwindSafe for ProcessEngineRegistry
impl Freeze for ProcessEngineRegistry
impl Send for ProcessEngineRegistry
impl Sync for ProcessEngineRegistry
impl Unpin for ProcessEngineRegistry
impl UnsafeUnpin for ProcessEngineRegistry
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