pub struct InMemoryAgentStore { /* private fields */ }Expand description
Application-grade in-memory agent store for embedded hosts.
Implementations§
Source§impl InMemoryAgentStore
impl InMemoryAgentStore
Sourcepub async fn add_agent(&self, agent: AgentDefinition)
pub async fn add_agent(&self, agent: AgentDefinition)
Insert or replace an agent definition.
Trait Implementations§
Source§impl AgentStore for InMemoryAgentStore
impl AgentStore for InMemoryAgentStore
Source§fn get_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<Option<AgentDefinition>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<Option<AgentDefinition>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the portable execution definition for an agent by public id.
Source§fn get_agent_blocker<'life0, 'async_trait>(
&'life0 self,
agent_id: TypedId<AgentIdMarker>,
) -> Pin<Box<dyn Future<Output = Result<Option<DependencyBlocker>, AgentLoopError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_agent_blocker<'life0, 'async_trait>(
&'life0 self,
agent_id: TypedId<AgentIdMarker>,
) -> Pin<Box<dyn Future<Output = Result<Option<DependencyBlocker>, AgentLoopError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Execution-availability probe for dependency-blocker detection. Read more
Source§impl Clone for InMemoryAgentStore
impl Clone for InMemoryAgentStore
Source§fn clone(&self) -> InMemoryAgentStore
fn clone(&self) -> InMemoryAgentStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryAgentStore
impl Debug for InMemoryAgentStore
Source§impl Default for InMemoryAgentStore
impl Default for InMemoryAgentStore
Source§fn default() -> InMemoryAgentStore
fn default() -> InMemoryAgentStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryAgentStore
impl !UnwindSafe for InMemoryAgentStore
impl Freeze for InMemoryAgentStore
impl Send for InMemoryAgentStore
impl Sync for InMemoryAgentStore
impl Unpin for InMemoryAgentStore
impl UnsafeUnpin for InMemoryAgentStore
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