pub trait System: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn process<'life0, 'async_trait>(
&'life0 mut self,
objects: Vec<Object>,
priority: Priority,
) -> Pin<Box<dyn Future<Output = Result<Vec<ActionResult>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn priority(&self) -> Priority { ... }
fn is_ready(&self) -> bool { ... }
fn get_stats(&self) -> SystemStats { ... }
}Expand description
A system represents orchestration that coordinates actions and manages resources
Required Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get the description of this system
Provided Methods§
Sourcefn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the system
Sourcefn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Shutdown the system
Sourcefn get_stats(&self) -> SystemStats
fn get_stats(&self) -> SystemStats
Get system statistics