pub struct TelemetrySinkSpec {
pub sink_id: TelemetrySinkId,
pub sink_kind: TelemetrySinkKind,
pub content_capture: TelemetryContentCaptureMode,
pub queue_capacity: NonZeroUsize,
pub terminal_reserve: NonZeroUsize,
pub requires_idempotent_replay: bool,
}Expand description
Carries telemetry sink spec data across a host-port boundary. Constructing the value does not call the host; the port method that receives it documents any adapter, network, or storage effect.
Fields§
§sink_id: TelemetrySinkIdStable sink id used for typed lineage, lookup, or dedupe.
sink_kind: TelemetrySinkKindKind discriminator for sink kind. Use it to route finite match arms without parsing display text.
content_capture: TelemetryContentCaptureModeContent capture used by this record or request.
queue_capacity: NonZeroUsizeQueue capacity used by this record or request.
terminal_reserve: NonZeroUsizeQueue slots reserved for terminal frames. This keeps important terminal events available even when non-terminal frames overflow.
requires_idempotent_replay: boolBoolean policy/capability flag for whether requires idempotent replay is enabled.
Implementations§
Source§impl TelemetrySinkSpec
impl TelemetrySinkSpec
Sourcepub fn safe_local_diagnostic(sink_id: impl Into<String>) -> Self
pub fn safe_local_diagnostic(sink_id: impl Into<String>) -> Self
Builds the safe local diagnostic value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn test(sink_id: impl Into<String>, queue_capacity: NonZeroUsize) -> Self
pub fn test(sink_id: impl Into<String>, queue_capacity: NonZeroUsize) -> Self
Builds the test value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn with_content_capture(self, mode: TelemetryContentCaptureMode) -> Self
pub fn with_content_capture(self, mode: TelemetryContentCaptureMode) -> Self
Returns this value with its content capture setting replaced. The method follows builder-style data construction and does not execute external work.
Sourcepub fn with_terminal_reserve(self, terminal_reserve: NonZeroUsize) -> Self
pub fn with_terminal_reserve(self, terminal_reserve: NonZeroUsize) -> Self
Returns this value with its terminal reserve setting replaced. The method follows builder-style data construction and does not execute external work.
Trait Implementations§
Source§impl Clone for TelemetrySinkSpec
impl Clone for TelemetrySinkSpec
Source§fn clone(&self) -> TelemetrySinkSpec
fn clone(&self) -> TelemetrySinkSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TelemetrySinkSpec
impl Debug for TelemetrySinkSpec
Source§impl<'de> Deserialize<'de> for TelemetrySinkSpec
impl<'de> Deserialize<'de> for TelemetrySinkSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TelemetrySinkSpec
impl PartialEq for TelemetrySinkSpec
Source§fn eq(&self, other: &TelemetrySinkSpec) -> bool
fn eq(&self, other: &TelemetrySinkSpec) -> bool
self and other values to be equal, and is used by ==.