pub struct RoundRobinManager { /* private fields */ }Expand description
The default manager: cycles through participants in registration order.
Not present in Python (which requires an explicit manager); provided here as
an ergonomic default. Termination is enforced by the orchestrator’s
max_rounds bound.
Implementations§
Trait Implementations§
Source§impl Default for RoundRobinManager
impl Default for RoundRobinManager
Source§impl GroupChatManager for RoundRobinManager
impl GroupChatManager for RoundRobinManager
Source§fn select<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 GroupChatState,
) -> Pin<Box<dyn Future<Output = Result<GroupChatDirective>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn select<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 GroupChatState,
) -> Pin<Box<dyn Future<Output = Result<GroupChatDirective>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Decide the next
GroupChatDirective from the current state.Auto Trait Implementations§
impl Freeze for RoundRobinManager
impl RefUnwindSafe for RoundRobinManager
impl Send for RoundRobinManager
impl Sync for RoundRobinManager
impl Unpin for RoundRobinManager
impl UnsafeUnpin for RoundRobinManager
impl UnwindSafe for RoundRobinManager
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