pub struct WorkerCtx {
pub id: usize,
pub registry: Arc<Registry>,
pub events: Arc<EventRing<LogEvent, { vane_observe::EVENT_RING_CAPACITY }>>,
pub config: WorkerConfig,
pub connections: MetricHandle,
}Expand description
Immutable context handed to a HandlerFactory::build.
Fields§
§id: usizeWorker index (0..N).
registry: Arc<Registry>Shared metric registry.
events: Arc<EventRing<LogEvent, { vane_observe::EVENT_RING_CAPACITY }>>Worker-local log/event ring (drained by the control plane).
config: WorkerConfigEffective worker config.
connections: MetricHandleLive-session gauge (worker-maintained).
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerCtx
impl !UnwindSafe for WorkerCtx
impl Freeze for WorkerCtx
impl Send for WorkerCtx
impl Sync for WorkerCtx
impl Unpin for WorkerCtx
impl UnsafeUnpin for WorkerCtx
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