pub trait DataWriter: Send + Sync {
// Required methods
fn write(&self, payload: &[u8]) -> Result<()>;
fn write_with_timestamp(
&self,
payload: &[u8],
timestamp_ns: u64,
) -> Result<()>;
fn topic(&self) -> &str;
fn type_name(&self) -> &str;
}Expand description
Abstract data writer interface