pub enum ConsumerMode {
RealTime,
Resumable,
LoadBalanced,
}
Expand description
Mode of stream consumption.
Variants§
RealTime
This is the ‘vanilla’ stream consumer. It does not auto-commit, and thus only consumes messages from now on.
Resumable
When the process restarts, it will resume the stream from the previous committed sequence.
LoadBalanced
You should assign a consumer group manually. The load-balancing mechanism is implementation-specific.
Trait Implementations§
Source§impl Clone for ConsumerMode
impl Clone for ConsumerMode
Source§fn clone(&self) -> ConsumerMode
fn clone(&self) -> ConsumerMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConsumerMode
impl Debug for ConsumerMode
Source§impl Default for ConsumerMode
impl Default for ConsumerMode
Source§fn default() -> ConsumerMode
fn default() -> ConsumerMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConsumerMode
impl PartialEq for ConsumerMode
impl Copy for ConsumerMode
impl Eq for ConsumerMode
impl StructuralPartialEq for ConsumerMode
Auto Trait Implementations§
impl Freeze for ConsumerMode
impl RefUnwindSafe for ConsumerMode
impl Send for ConsumerMode
impl Sync for ConsumerMode
impl Unpin for ConsumerMode
impl UnwindSafe for ConsumerMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.