Struct kinesis_firehose_producer::async_producer_pool::AsyncProducerPool[][src]

pub struct AsyncProducerPool { /* fields omitted */ }
Expand description

The Producer Pool. Create one with AsyncProducerPool::of_size

Panics

This can panic at pretty much any point if a member Producer throws an error. Currently there is an error channel which waits for errors and panics, but we could do something else here? If we get in that state, though, it’s likely the situation won’t benefit from additional retries. So what else would we do?

Implementations

Create a pool of size size

Create a pool of size size with a given client The client will be cloned for each pool member

Panics

If size < 1

Produce a message; send a string to a producer. Panics if the pool has been shutdown

Queue a flush for each of the members. Doesn’t wait for them to finish

Shut down the pool. You MUST call this when you’re done, otherwise we’ll drop data.

Trait Implementations

Formats the value using the given formatter. Read more

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.