pub enum ConcurrencyModel {
Sequential,
Concurrent {
max: Option<usize>,
},
}Expand description
How a consumer’s exchanges should be processed by the pipeline.
Variants§
Sequential
Exchanges are processed one at a time, in order. Default for polling consumers (timer, file) and synchronous consumers (direct).
Concurrent
Exchanges are processed concurrently via tokio::spawn. Optional
semaphore limit (max). None means unbounded (channel buffer is
the only backpressure).
Trait Implementations§
Source§impl Clone for ConcurrencyModel
impl Clone for ConcurrencyModel
Source§fn clone(&self) -> ConcurrencyModel
fn clone(&self) -> ConcurrencyModel
Returns a duplicate 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 ConcurrencyModel
impl Debug for ConcurrencyModel
Source§impl PartialEq for ConcurrencyModel
impl PartialEq for ConcurrencyModel
impl Eq for ConcurrencyModel
impl StructuralPartialEq for ConcurrencyModel
Auto Trait Implementations§
impl Freeze for ConcurrencyModel
impl RefUnwindSafe for ConcurrencyModel
impl Send for ConcurrencyModel
impl Sync for ConcurrencyModel
impl Unpin for ConcurrencyModel
impl UnsafeUnpin for ConcurrencyModel
impl UnwindSafe for ConcurrencyModel
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