NominalCoreConsumer#

pub struct NominalCoreConsumer<A: AuthProvider>#

Implementations#

impl<A: AuthProvider> NominalCoreConsumer<A>
pub fn new(client: NominalApiClients, handle: Handle, auth_provider: A, data_source_rid: ResourceIdentifier) -> Self#
pub fn with_track_metrics(self, enabled: bool) -> Self#

Piggyback completed request metrics on later data requests to the same dataset. Pending metrics are bounded and best-effort; no extra requests are sent.

pub fn with_additional_metric_channels(self, channels: impl IntoIterator<Item = impl Into<String>>) -> Self#

Name channels the caller emits through the stream as metrics rather than data, so they are excluded from request latency measurements. The request metrics this consumer emits itself are always excluded. Only relevant when metrics tracking is enabled.

Trait implementations#

impl<T: AuthProvider> Debug for NominalCoreConsumer<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: AuthProvider + 'static> WriteRequestConsumer for NominalCoreConsumer<T>
fn consume(&self, request: &WriteRequestNominal) -> ConsumerResult<()>

Derived: Clone

Auto traits: Send, Sync, Unpin, !UnwindSafe, !RefUnwindSafe