pub enum BackpressureStrategy {
DropOldest,
DropNewest,
Block,
Error,
}Expand description
Backpressure strategy for automatic flow control
Variants§
DropOldest
Drop oldest items when buffer is full
DropNewest
Drop newest items when buffer is full
Block
Block producer until consumer catches up
Error
Fail fast when buffer is full
Trait Implementations§
Source§impl Clone for BackpressureStrategy
impl Clone for BackpressureStrategy
Source§fn clone(&self) -> BackpressureStrategy
fn clone(&self) -> BackpressureStrategy
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 BackpressureStrategy
impl Debug for BackpressureStrategy
impl Copy for BackpressureStrategy
Auto Trait Implementations§
impl Freeze for BackpressureStrategy
impl RefUnwindSafe for BackpressureStrategy
impl Send for BackpressureStrategy
impl Sync for BackpressureStrategy
impl Unpin for BackpressureStrategy
impl UnwindSafe for BackpressureStrategy
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