#[non_exhaustive]pub struct SplitTarget { /* private fields */ }Expand description
The per-sink handles a split branch needs, resolved by name from the
chain factory’s ChainCtx via
ChainCtx::sink. The bundle carries
the sink’s name, so SplitBuilder::add does not
repeat it.
Implementations§
Source§impl SplitTarget
impl SplitTarget
Sourcepub fn new(
name: String,
queues: ShardQueues,
budget: Arc<InflightBudget>,
) -> Self
pub fn new( name: String, queues: ShardQueues, budget: Arc<InflightBudget>, ) -> Self
Bundle a named sink’s queues and the shared in-flight budget. Chunking
starts at ChunkConfig::default; override it with
with_chunk. (Builder pipelines do not call this;
ChainCtx::sink hands out a fully
resolved SplitTarget.)
Sourcepub fn with_chunk(self, chunk: ChunkConfig) -> Self
pub fn with_chunk(self, chunk: ChunkConfig) -> Self
Set this branch’s terminal-stage chunking, the manual-assembly
counterpart to the per-sink YAML chunk: block.
Trait Implementations§
Source§impl Clone for SplitTarget
impl Clone for SplitTarget
Auto Trait Implementations§
impl !RefUnwindSafe for SplitTarget
impl !UnwindSafe for SplitTarget
impl Freeze for SplitTarget
impl Send for SplitTarget
impl Sync for SplitTarget
impl Unpin for SplitTarget
impl UnsafeUnpin for SplitTarget
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