pub struct ConnectomeServiceImpl { /* private fields */ }Expand description
Default implementation of ConnectomeService
Implementations§
Source§impl ConnectomeServiceImpl
impl ConnectomeServiceImpl
pub fn new( connectome: Arc<RwLock<ConnectomeManager>>, current_genome: Arc<RwLock<Option<RuntimeGenome>>>, ) -> Self
Sourcepub fn set_burst_runner(&mut self, burst_runner: Arc<RwLock<BurstLoopRunner>>)
pub fn set_burst_runner(&mut self, burst_runner: Arc<RwLock<BurstLoopRunner>>)
Set the burst runner for cache refresh
Sourcepub fn set_runtime_service(
&self,
runtime_service: Arc<dyn RuntimeService + Send + Sync>,
)
pub fn set_runtime_service( &self, runtime_service: Arc<dyn RuntimeService + Send + Sync>, )
Set the runtime service (required for connectome export/import)
This must be called after creating ConnectomeServiceImpl to enable connectome I/O operations.
Trait Implementations§
Source§impl ConnectomeService for ConnectomeServiceImpl
impl ConnectomeService for ConnectomeServiceImpl
Source§fn create_cortical_area<'life0, 'async_trait>(
&'life0 self,
params: CreateCorticalAreaParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_cortical_area<'life0, 'async_trait>(
&'life0 self,
params: CreateCorticalAreaParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a cortical area Read more
Source§fn delete_cortical_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_cortical_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a cortical area Read more
Source§fn update_cortical_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
_params: UpdateCorticalAreaParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_cortical_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
_params: UpdateCorticalAreaParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update a cortical area Read more
Source§fn get_cortical_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_cortical_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get cortical area information Read more
Source§fn list_cortical_areas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<CorticalAreaInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_cortical_areas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<CorticalAreaInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all cortical areas Read more
Source§fn get_cortical_area_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_cortical_area_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get cortical area IDs Read more
Source§fn cortical_area_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cortical_area_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a cortical area exists Read more
Source§fn get_cortical_area_properties<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<HashMap<String, Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_cortical_area_properties<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<HashMap<String, Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get cortical area properties as a flat HashMap Read more
Source§fn get_all_cortical_area_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<HashMap<String, Value>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_cortical_area_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<HashMap<String, Value>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get properties of all cortical areas Read more
Source§fn get_neuron_properties<'life0, 'async_trait>(
&'life0 self,
neuron_id: u64,
) -> Pin<Box<dyn Future<Output = ServiceResult<HashMap<String, Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_neuron_properties<'life0, 'async_trait>(
&'life0 self,
neuron_id: u64,
) -> Pin<Box<dyn Future<Output = ServiceResult<HashMap<String, Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a neuron’s live properties/state snapshot (for visualization/debugging). Read more
Source§fn create_brain_region<'life0, 'async_trait>(
&'life0 self,
params: CreateBrainRegionParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<BrainRegionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_brain_region<'life0, 'async_trait>(
&'life0 self,
params: CreateBrainRegionParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<BrainRegionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a brain region Read more
Source§fn delete_brain_region<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_brain_region<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a brain region Read more
Source§fn update_brain_region<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
properties: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = ServiceResult<BrainRegionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_brain_region<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
properties: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = ServiceResult<BrainRegionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update a brain region Read more
Source§fn get_brain_region<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<BrainRegionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_brain_region<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<BrainRegionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get brain region information Read more
Source§fn list_brain_regions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<BrainRegionInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_brain_regions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<BrainRegionInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all brain regions Read more
Source§fn get_brain_region_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_brain_region_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get brain region IDs Read more
Source§fn brain_region_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn brain_region_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
region_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a brain region exists Read more
Source§fn get_morphologies<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<HashMap<String, MorphologyInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_morphologies<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<HashMap<String, MorphologyInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all morphologies from the loaded genome Read more
Source§fn create_morphology<'life0, 'async_trait>(
&'life0 self,
morphology_id: String,
morphology: Morphology,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_morphology<'life0, 'async_trait>(
&'life0 self,
morphology_id: String,
morphology: Morphology,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new morphology definition. Read more
Source§fn update_morphology<'life0, 'async_trait>(
&'life0 self,
morphology_id: String,
morphology: Morphology,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_morphology<'life0, 'async_trait>(
&'life0 self,
morphology_id: String,
morphology: Morphology,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update an existing morphology definition. Read more
Source§fn delete_morphology<'life0, 'life1, 'async_trait>(
&'life0 self,
morphology_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_morphology<'life0, 'life1, 'async_trait>(
&'life0 self,
morphology_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a morphology definition by ID. Read more
Source§fn rename_morphology<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
old_id: &'life1 str,
new_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn rename_morphology<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
old_id: &'life1 str,
new_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Rename a morphology definition. Read more
Source§fn update_cortical_mapping<'life0, 'async_trait>(
&'life0 self,
src_area_id: String,
dst_area_id: String,
mapping_data: Vec<Value>,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_cortical_mapping<'life0, 'async_trait>(
&'life0 self,
src_area_id: String,
dst_area_id: String,
mapping_data: Vec<Value>,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update cortical mapping between two cortical areas Read more
Source§fn export_connectome<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<ConnectomeSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn export_connectome<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<ConnectomeSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Export the current connectome as a snapshot Read more
Source§fn import_connectome<'life0, 'async_trait>(
&'life0 self,
snapshot: ConnectomeSnapshot,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn import_connectome<'life0, 'async_trait>(
&'life0 self,
snapshot: ConnectomeSnapshot,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Import a connectome snapshot Read more
Auto Trait Implementations§
impl Freeze for ConnectomeServiceImpl
impl !RefUnwindSafe for ConnectomeServiceImpl
impl Send for ConnectomeServiceImpl
impl Sync for ConnectomeServiceImpl
impl Unpin for ConnectomeServiceImpl
impl UnsafeUnpin for ConnectomeServiceImpl
impl !UnwindSafe for ConnectomeServiceImpl
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more