pub struct TeeBuilder { /* private fields */ }Expand description
Build-time configuration for a Tee. Initial branches are merged
with the Tee into one detached subgraph and committed by a single
Context::attach call. Use TeeBuilder::build for a fixed fan-out,
or TeeBuilder::build_dynamic when runtime changes need a
TeeHandle.
Implementations§
Source§impl TeeBuilder
impl TeeBuilder
Sourcepub fn new(name: impl Into<String>, context: Arc<Context>) -> Self
pub fn new(name: impl Into<String>, context: Arc<Context>) -> Self
Starts an initially empty Tee in the supplied pipeline context.
Sourcepub fn branch(self, branch: DetachedBranch) -> Self
pub fn branch(self, branch: DetachedBranch) -> Self
Adds one fixed initial branch to this fan-out subgraph.
Sourcepub fn build(self) -> Result<DetachedBranch>
pub fn build(self) -> Result<DetachedBranch>
Returns the complete fixed fan-out without exposing runtime control.
Sourcepub fn build_dynamic(self) -> Result<(DetachedBranch, TeeHandle)>
pub fn build_dynamic(self) -> Result<(DetachedBranch, TeeHandle)>
Returns the initial subgraph together with its runtime control handle.
Attach the branch through Context::attach before using the handle.
Auto Trait Implementations§
impl !RefUnwindSafe for TeeBuilder
impl !Sync for TeeBuilder
impl !UnwindSafe for TeeBuilder
impl Freeze for TeeBuilder
impl Send for TeeBuilder
impl Unpin for TeeBuilder
impl UnsafeUnpin for TeeBuilder
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