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§
Source§impl RoundRobinManager
impl RoundRobinManager
Sourcepub fn new() -> RoundRobinManager
pub fn new() -> RoundRobinManager
Create a round-robin manager.
Trait Implementations§
Source§impl Default for RoundRobinManager
impl Default for RoundRobinManager
Source§fn default() -> RoundRobinManager
fn default() -> RoundRobinManager
Returns the “default value” for a type. Read more
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, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RoundRobinManager: 'async_trait,
fn select<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 GroupChatState,
) -> Pin<Box<dyn Future<Output = Result<GroupChatDirective, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RoundRobinManager: '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