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

Create a Producer with a new KinesisFirehoseClient gleaned from the environment

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.

Make the producer flush its buffer.

Create a Producer with an existing KinesisFirehoseClient

Trait Implementations

Flush on Drop

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.