pub struct AnalyticsServiceImpl { /* private fields */ }Expand description
Default implementation of AnalyticsService
Implementations§
Source§impl AnalyticsServiceImpl
impl AnalyticsServiceImpl
pub fn new( connectome: Arc<RwLock<ConnectomeManager>>, burst_runner: Option<Arc<RwLock<BurstLoopRunner>>>, ) -> Self
Trait Implementations§
Source§impl AnalyticsService for AnalyticsServiceImpl
impl AnalyticsService for AnalyticsServiceImpl
Source§fn get_system_health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<SystemHealth>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_system_health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<SystemHealth>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get system health status Read more
Source§fn get_cortical_area_stats<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_cortical_area_stats<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<CorticalAreaStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get statistics for a cortical area Read more
Source§fn get_all_cortical_area_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<CorticalAreaStats>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_cortical_area_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<CorticalAreaStats>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get statistics for all cortical areas Read more
Source§fn get_connectivity_stats<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source_area: &'life1 str,
target_area: &'life2 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<ConnectivityStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_connectivity_stats<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source_area: &'life1 str,
target_area: &'life2 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<ConnectivityStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get connectivity statistics between two cortical areas Read more
Source§fn get_total_neuron_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_total_neuron_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get total neuron count across all cortical areas Read more
Source§fn get_total_synapse_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_total_synapse_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get total synapse count across all cortical areas Read more
Source§fn get_populated_areas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<(String, usize)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_populated_areas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<(String, usize)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get list of populated cortical areas (areas with neurons) Read more
Source§fn get_neuron_density<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<f32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_neuron_density<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ServiceResult<f32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get neuron density for a cortical area Read more
Source§fn is_brain_initialized<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_brain_initialized<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the brain is initialized (has cortical areas) Read more
Source§fn is_burst_engine_ready<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_burst_engine_ready<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the burst engine is ready Read more
Source§fn get_regular_neuron_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_regular_neuron_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get count of neurons in non-memory cortical areas Read more
Source§fn get_memory_neuron_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_memory_neuron_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get count of neurons in memory-type cortical areas Read more
Auto Trait Implementations§
impl Freeze for AnalyticsServiceImpl
impl !RefUnwindSafe for AnalyticsServiceImpl
impl Send for AnalyticsServiceImpl
impl Sync for AnalyticsServiceImpl
impl Unpin for AnalyticsServiceImpl
impl UnsafeUnpin for AnalyticsServiceImpl
impl !UnwindSafe for AnalyticsServiceImpl
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