pub struct GroupBuilder<P = (), H = ()> { /* private fields */ }Implementations§
Source§impl<P, H> GroupBuilder<P, H>
impl<P, H> GroupBuilder<P, H>
pub fn agent(self, name: impl Into<String>, svc: AgentSvc) -> Self
pub fn picker<NewP>(self, p: NewP) -> GroupBuilder<NewP, H>
Sourcepub fn handoff_policy<NewH>(self, policy: NewH) -> GroupBuilder<P, NewH>where
NewH: HandoffPolicy + Clone,
pub fn handoff_policy<NewH>(self, policy: NewH) -> GroupBuilder<P, NewH>where
NewH: HandoffPolicy + Clone,
Add handoff policy to enable agent coordination
Source§impl<P> GroupBuilder<P, ()>
impl<P> GroupBuilder<P, ()>
Sourcepub fn build(self) -> GroupRouter<P>
pub fn build(self) -> GroupRouter<P>
Build a basic group without handoff coordination
Source§impl<P, H> GroupBuilder<P, H>
impl<P, H> GroupBuilder<P, H>
Sourcepub fn build(self) -> HandoffCoordinator<P, H>
pub fn build(self) -> HandoffCoordinator<P, H>
Build a handoff-enabled group coordinator
Trait Implementations§
Auto Trait Implementations§
impl<P, H> Freeze for GroupBuilder<P, H>
impl<P = (), H = ()> !RefUnwindSafe for GroupBuilder<P, H>
impl<P, H> Send for GroupBuilder<P, H>
impl<P, H> Sync for GroupBuilder<P, H>
impl<P, H> Unpin for GroupBuilder<P, H>
impl<P, H> UnsafeUnpin for GroupBuilder<P, H>where
P: UnsafeUnpin,
H: UnsafeUnpin,
impl<P = (), H = ()> !UnwindSafe for GroupBuilder<P, H>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more