#[non_exhaustive]pub struct SinkCtx { /* private fields */ }Expand description
The per-sink handles a split branch needs, resolved by name from the
chain factory’s ChainCtx via
ChainCtx::sink. Bundling the name in
keeps SplitBuilder::add from repeating it.
Implementations§
Source§impl SinkCtx
impl SinkCtx
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 never call this —
ChainCtx::sink hands out a fully
resolved SinkCtx.)
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§
Auto Trait Implementations§
impl !RefUnwindSafe for SinkCtx
impl !UnwindSafe for SinkCtx
impl Freeze for SinkCtx
impl Send for SinkCtx
impl Sync for SinkCtx
impl Unpin for SinkCtx
impl UnsafeUnpin for SinkCtx
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