Struct kinesis_firehose_producer::sync_producer::Producer [−][src]
pub struct Producer<C: PutRecordBatcher> { /* fields omitted */ }
Expand description
The producer itself.
Create one with Producer<KinesisFirehoseClient>::new
or Producer::with_client
Unlike the Async Producer, this one WILL flush on Drop
, so you don’t need to flush it manually
Maybe you still should, though, in case it fails.
Implementations
Buffer a record to be sent to Kinesis Firehose. If this record fills up the buffer, it will be flushed.
This function WILL add newlines to the end of each record. Don’t add them yourself.
Create a Producer with an existing KinesisFirehoseClient