pub struct Swarm { /* private fields */ }Expand description
Swarm intelligence coordinator
Implementations§
Source§impl Swarm
impl Swarm
Sourcepub fn add_behavior(&self, behavior: SwarmBehavior)
pub fn add_behavior(&self, behavior: SwarmBehavior)
Add a behavior to the swarm
Sourcepub async fn initialize(&self, agent_count: usize)
pub async fn initialize(&self, agent_count: usize)
Initialize swarm with agents
Sourcepub fn get_stats(&self) -> SwarmStats
pub fn get_stats(&self) -> SwarmStats
Get swarm statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Swarm
impl !RefUnwindSafe for Swarm
impl Send for Swarm
impl Sync for Swarm
impl Unpin for Swarm
impl !UnwindSafe for Swarm
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