Skip to main content

ErasedInternalReactantFactory

Trait ErasedInternalReactantFactory 

Source
pub trait ErasedInternalReactantFactory:
    Send
    + Sync
    + 'static {
    // Required method
    fn create_reactant(
        &self,
        current_ganglion_id: Uuid,
        internal_ganglia: Arc<RwLock<HashMap<Uuid, Arc<Mutex<dyn GanglionInternal + Send + Sync + 'static>>>>>,
        external_ganglia: Arc<RwLock<HashMap<Uuid, Arc<Mutex<dyn GanglionExternal + Send + Sync + 'static>>>>>,
        reactions: Cache<u64, Arc<Mutex<HashSet<Uuid>>>>,
    ) -> Arc<dyn ReactantErased + Send + Sync + 'static>;
}

Required Methods§

Source

fn create_reactant( &self, current_ganglion_id: Uuid, internal_ganglia: Arc<RwLock<HashMap<Uuid, Arc<Mutex<dyn GanglionInternal + Send + Sync + 'static>>>>>, external_ganglia: Arc<RwLock<HashMap<Uuid, Arc<Mutex<dyn GanglionExternal + Send + Sync + 'static>>>>>, reactions: Cache<u64, Arc<Mutex<HashSet<Uuid>>>>, ) -> Arc<dyn ReactantErased + Send + Sync + 'static>

Implementors§

Source§

impl<T, C> ErasedInternalReactantFactory for PlexusInternalReactantFactory<T, C>
where C: Codec<T> + CodecName + Send + Sync + 'static, T: Send + Sync + 'static,