pub struct FanOut {
pub branches: Vec<Composable>,
}Expand description
Parallel fan-out: execute branches concurrently, merge results.
Fields§
§branches: Vec<Composable>Branches to execute concurrently.
Implementations§
Source§impl FanOut
impl FanOut
Sourcepub fn new(branches: Vec<Composable>) -> Self
pub fn new(branches: Vec<Composable>) -> Self
Create a fan-out from the given branches.
Sourcepub fn builder(_name: &str) -> Self
pub fn builder(_name: &str) -> Self
Create an empty named fan-out (fluent builder entry point).
ⓘ
FanOut::builder("research")
.branch(web_agent)
.branch(db_agent)Sourcepub fn branch(self, agent: impl Into<Composable>) -> Self
pub fn branch(self, agent: impl Into<Composable>) -> Self
Add a parallel branch (fluent builder).
Sourcepub fn sub_agent(self, agent: AgentBuilder) -> Self
pub fn sub_agent(self, agent: AgentBuilder) -> Self
Add a sub-agent branch (alias for branch — matches upstream naming).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FanOut
impl !RefUnwindSafe for FanOut
impl Send for FanOut
impl Sync for FanOut
impl Unpin for FanOut
impl !UnwindSafe for FanOut
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