pub struct SystemServiceImpl { /* private fields */ }Expand description
Default implementation of SystemService
Implementations§
Source§impl SystemServiceImpl
impl SystemServiceImpl
Sourcepub fn new(
connectome: Arc<RwLock<ConnectomeManager>>,
burst_runner: Option<Arc<RwLock<BurstLoopRunner>>>,
version_info: VersionInfo,
) -> Self
pub fn new( connectome: Arc<RwLock<ConnectomeManager>>, burst_runner: Option<Arc<RwLock<BurstLoopRunner>>>, version_info: VersionInfo, ) -> Self
Create new SystemServiceImpl
The version_info should be populated by the application (e.g., feagi-rust) with the versions of all crates it was compiled with
Sourcepub fn get_feagi_session_timestamp(&self) -> i64
pub fn get_feagi_session_timestamp(&self) -> i64
Get FEAGI session timestamp in milliseconds (Unix timestamp when FEAGI started)
Trait Implementations§
Source§impl SystemService for SystemServiceImpl
impl SystemService for SystemServiceImpl
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,
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 Read more
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,
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) Read more
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,
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 Read more
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,
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) Read more
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,
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) Read more
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,
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 Read more
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,
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 Read more
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,
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.) Read more
Auto Trait Implementations§
impl Freeze for SystemServiceImpl
impl !RefUnwindSafe for SystemServiceImpl
impl Send for SystemServiceImpl
impl Sync for SystemServiceImpl
impl Unpin for SystemServiceImpl
impl UnsafeUnpin for SystemServiceImpl
impl !UnwindSafe for SystemServiceImpl
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