Skip to main content

SystemService

Trait SystemService 

Source
pub trait SystemService: Send + Sync {
    // Required methods
    fn get_health<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<HealthStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_status<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<SystemStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_version<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<VersionInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_initialized<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_burst_count<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_runtime_stats<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<RuntimeStats>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_memory_usage<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<MemoryUsage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_capacity<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ServiceResult<CapacityInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

System service (transport-agnostic)

Required Methods§

Source

fn get_health<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceResult<HealthStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get system health status

§Returns
  • HealthStatus - Overall system health with component statuses
Source

fn get_status<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceResult<SystemStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get system status (comprehensive information)

§Returns
  • SystemStatus - Detailed system status including counters, memory, uptime
Source

fn get_version<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceResult<VersionInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get system version information

§Returns
  • VersionInfo - Version numbers for all components
Source

fn is_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 system is initialized (has a loaded genome)

§Returns
  • bool - True if system is initialized
Source

fn get_burst_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the current burst count (total bursts executed)

§Returns
  • u64 - Total burst count
Source

fn get_runtime_stats<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceResult<RuntimeStats>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get runtime statistics

§Returns
  • RuntimeStats - Detailed runtime statistics
Source

fn get_memory_usage<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceResult<MemoryUsage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get memory usage information

§Returns
  • MemoryUsage - Current memory usage across all components
Source

fn get_capacity<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ServiceResult<CapacityInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get capacity information (max neurons, synapses, etc.)

§Returns
  • CapacityInfo - Current and maximum capacities

Implementors§