Trait LocalAgentStore

Source
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§

Source

fn add(&self, local_agent: DynLocalAgent) -> BoxFut<'_, K2Result<()>>

Add a local agent to the store.

Source

fn remove(&self, local_agent: AgentId) -> BoxFut<'_, Option<DynLocalAgent>>

Remove a local agent from the store.

Source

fn get_all(&self) -> BoxFut<'_, K2Result<Vec<DynLocalAgent>>>

Get a list of all local agents currently in the store.

Implementors§