pub struct ProcessorRegistry<P: PluginBridge + 'static> { /* private fields */ }
Implementations§
Source§impl<P: PluginBridge + 'static> ProcessorRegistry<P>
impl<P: PluginBridge + 'static> ProcessorRegistry<P>
pub fn new(plugin_bridge: Arc<P>) -> Self
pub fn register_processor( &self, name: &str, factory: Box<dyn WorldInfoProcessorFactory<P>>, )
pub fn register_plugin_processor(&self, author: &str, name: &str)
pub fn instantiate_processor( &self, name: &str, props: &Value, ) -> Option<Box<dyn WorldInfoNode>>
pub fn plugin_bridge(&self) -> &P
Auto Trait Implementations§
impl<P> !Freeze for ProcessorRegistry<P>
impl<P> RefUnwindSafe for ProcessorRegistry<P>where
P: RefUnwindSafe,
impl<P> Send for ProcessorRegistry<P>
impl<P> Sync for ProcessorRegistry<P>
impl<P> Unpin for ProcessorRegistry<P>
impl<P> UnwindSafe for ProcessorRegistry<P>where
P: RefUnwindSafe,
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