pub trait Consumer: Send + Sync {
// Required methods
fn add(&self, data: &Data) -> Result<()>;
fn flush(&self) -> Result<()>;
fn close(&self) -> Result<()>;
// Provided method
fn is_stringent(&self) -> bool { ... }
}Expand description
Synchronous delivery interface implemented by all consumers.
This is the Rust counterpart of the Go SDK’s TDConsumer interface: the
TDAnalytics facade validates and builds
events, then delegates delivery to a consumer. Available with the
blocking feature.
Required Methods§
Provided Methods§
Sourcefn is_stringent(&self) -> bool
fn is_stringent(&self) -> bool
Whether this consumer validates property keys strictly. Only the debug consumer is stringent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl Consumer for BatchConsumer
Available on crate feature
blocking only.impl Consumer for DebugConsumer
Available on crate feature
blocking only.impl Consumer for LogConsumer
Available on crate feature
blocking only.