pub enum ConsumerBalanceMode {
Competing,
FanOut,
}Expand description
How a consumer group distributes messages across consumers.
Backend support varies — StreamBus currently implements Competing
(Redis Streams consumer-group semantics) and rejects FanOut at subscribe
time. New backends may unlock additional modes; check the backend’s docs.
Variants§
Trait Implementations§
Source§impl Clone for ConsumerBalanceMode
impl Clone for ConsumerBalanceMode
Source§fn clone(&self) -> ConsumerBalanceMode
fn clone(&self) -> ConsumerBalanceMode
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 ConsumerBalanceMode
Source§impl Debug for ConsumerBalanceMode
impl Debug for ConsumerBalanceMode
Source§impl<'de> Deserialize<'de> for ConsumerBalanceMode
impl<'de> Deserialize<'de> for ConsumerBalanceMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConsumerBalanceMode
Source§impl Hash for ConsumerBalanceMode
impl Hash for ConsumerBalanceMode
Source§impl PartialEq for ConsumerBalanceMode
impl PartialEq for ConsumerBalanceMode
Source§fn eq(&self, other: &ConsumerBalanceMode) -> bool
fn eq(&self, other: &ConsumerBalanceMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConsumerBalanceMode
impl Serialize for ConsumerBalanceMode
impl StructuralPartialEq for ConsumerBalanceMode
Auto Trait Implementations§
impl Freeze for ConsumerBalanceMode
impl RefUnwindSafe for ConsumerBalanceMode
impl Send for ConsumerBalanceMode
impl Sync for ConsumerBalanceMode
impl Unpin for ConsumerBalanceMode
impl UnsafeUnpin for ConsumerBalanceMode
impl UnwindSafe for ConsumerBalanceMode
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