pub struct AgentPool { /* private fields */ }Expand description
Agent pool for managing verification agents
Implementations§
Source§impl AgentPool
impl AgentPool
Sourcepub async fn add_agent(
&mut self,
agent: Arc<dyn VerificationAgent>,
) -> Result<()>
pub async fn add_agent( &mut self, agent: Arc<dyn VerificationAgent>, ) -> Result<()>
Add an agent to the pool
Sourcepub async fn remove_agent(&mut self, agent_id: Uuid) -> Result<()>
pub async fn remove_agent(&mut self, agent_id: Uuid) -> Result<()>
Remove an agent from the pool
Sourcepub fn get_agent(&self, agent_id: Uuid) -> Option<Arc<dyn VerificationAgent>>
pub fn get_agent(&self, agent_id: Uuid) -> Option<Arc<dyn VerificationAgent>>
Get an agent by ID
Sourcepub fn get_all_agents(&self) -> Vec<Arc<dyn VerificationAgent>>
pub fn get_all_agents(&self) -> Vec<Arc<dyn VerificationAgent>>
Get all agents
Sourcepub async fn health_check_all(&self) -> Result<()>
pub async fn health_check_all(&self) -> Result<()>
Perform health check on all agents
Auto Trait Implementations§
impl Freeze for AgentPool
impl !RefUnwindSafe for AgentPool
impl Send for AgentPool
impl Sync for AgentPool
impl Unpin for AgentPool
impl !UnwindSafe for AgentPool
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