pub trait LocalAgentStore:
'static
+ Send
+ Sync
+ Debug {
// Required methods
fn add(&self, local_agent: DynLocalAgent) -> BoxFut<'_, K2Result<()>>;
fn remove(&self, local_agent: AgentId) -> BoxFut<'_, Option<DynLocalAgent>>;
fn get_all(&self) -> BoxFut<'_, K2Result<Vec<DynLocalAgent>>>;
}Expand description
A store for local agents.
These are the agents that are running on the current Kitsune2 instance.
Required Methods§
Sourcefn add(&self, local_agent: DynLocalAgent) -> BoxFut<'_, K2Result<()>>
fn add(&self, local_agent: DynLocalAgent) -> BoxFut<'_, K2Result<()>>
Add a local agent to the store.