pub struct SystemMapManager { /* private fields */ }Expand description
Manager for the system map
Implementations§
Source§impl SystemMapManager
impl SystemMapManager
Sourcepub async fn read_map(&self) -> Result<(), AgentError>
pub async fn read_map(&self) -> Result<(), AgentError>
Get the current map status
Sourcepub async fn update_map(&self) -> Result<(), AgentError>
pub async fn update_map(&self) -> Result<(), AgentError>
Update the map
Sourcepub async fn update_component_state(
&self,
component_id: String,
state: ComponentState,
) -> Result<(), AgentError>
pub async fn update_component_state( &self, component_id: String, state: ComponentState, ) -> Result<(), AgentError>
Update component state
Sourcepub async fn update_model_state(
&self,
model_id: String,
state: ModelState,
) -> Result<(), AgentError>
pub async fn update_model_state( &self, model_id: String, state: ModelState, ) -> Result<(), AgentError>
Update model state
Sourcepub async fn update_agent_relationships(
&self,
agent_id: String,
relationships: Vec<String>,
) -> Result<(), AgentError>
pub async fn update_agent_relationships( &self, agent_id: String, relationships: Vec<String>, ) -> Result<(), AgentError>
Update agent relationships
Sourcepub async fn update_health_metrics(
&self,
metrics: HashMap<String, f64>,
) -> Result<(), AgentError>
pub async fn update_health_metrics( &self, metrics: HashMap<String, f64>, ) -> Result<(), AgentError>
Update system health metrics
Trait Implementations§
Source§impl Default for SystemMapManager
impl Default for SystemMapManager
Source§impl MapProvider for SystemMapManager
impl MapProvider for SystemMapManager
Source§fn global() -> Arc<SystemMapManager>
fn global() -> Arc<SystemMapManager>
Get the global system map
Source§fn read_map<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_map<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current map
Source§fn update_map<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_map<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update the map
Auto Trait Implementations§
impl !Freeze for SystemMapManager
impl RefUnwindSafe for SystemMapManager
impl Send for SystemMapManager
impl Sync for SystemMapManager
impl Unpin for SystemMapManager
impl UnwindSafe for SystemMapManager
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