pub enum InitProducerIdIdentityDecision {
BumpWithoutIdentity,
Bump,
Retry,
Fenced,
}Expand description
What InitProducerId does with the producer identity a caller supplies.
Variants§
BumpWithoutIdentity
The caller names no identity. Kafka bumps the epoch and records no
last epoch (prepareIncrementProducerEpoch with an empty expected
epoch).
Bump
The caller names the entry’s live epoch. Kafka bumps the epoch and records the epoch it held as the last epoch.
Retry
The caller names the epoch the entry held before its last bump. Kafka treats this as a retry of the call that made that bump: it answers the entry’s identity and writes nothing.
Fenced
Kafka answers PRODUCER_FENCED.
Trait Implementations§
Source§impl Clone for InitProducerIdIdentityDecision
impl Clone for InitProducerIdIdentityDecision
Source§fn clone(&self) -> InitProducerIdIdentityDecision
fn clone(&self) -> InitProducerIdIdentityDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InitProducerIdIdentityDecision
impl Eq for InitProducerIdIdentityDecision
impl StructuralPartialEq for InitProducerIdIdentityDecision
Auto Trait Implementations§
impl Freeze for InitProducerIdIdentityDecision
impl RefUnwindSafe for InitProducerIdIdentityDecision
impl Send for InitProducerIdIdentityDecision
impl Sync for InitProducerIdIdentityDecision
impl Unpin for InitProducerIdIdentityDecision
impl UnsafeUnpin for InitProducerIdIdentityDecision
impl UnwindSafe for InitProducerIdIdentityDecision
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more