#[non_exhaustive]pub struct ChainCtx {
pub thread: usize,
pub queues: ShardQueues,
pub budget: Arc<InflightBudget>,
pub pipeline: String,
}Expand description
Per-thread wiring handed to the chain factory — everything the terminal
.sink(...) stage needs, so assemblies stop
threading queues, budget, and the pipeline name by hand.
Passed by value, once per pipeline thread; move the fields into the
chain being built. Deliberately not Clone — see the module docs on
drop ordering.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.thread: usizeZero-based pipeline thread index.
queues: ShardQueuesThis thread’s clone of the shard-queue senders.
budget: Arc<InflightBudget>The shared in-flight byte budget.
pipeline: StringThe pipeline name — ChainBuilder::with_metrics’s
first argument.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainCtx
impl RefUnwindSafe for ChainCtx
impl Send for ChainCtx
impl Sync for ChainCtx
impl Unpin for ChainCtx
impl UnsafeUnpin for ChainCtx
impl UnwindSafe for ChainCtx
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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