pub trait NamespaceManager: Send + Sync {
// Required methods
fn get_or_create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
agent_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AgentNamespace>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_by_name<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AgentNamespace>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<AgentNamespace>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<NamespaceStats>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for namespace management
Required Methods§
Sourcefn get_or_create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
agent_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AgentNamespace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_or_create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
agent_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AgentNamespace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get or create a namespace
Sourcefn get_by_name<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AgentNamespace>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_by_name<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AgentNamespace>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a namespace by name