pub enum BackpressureStrategy {
Buffer,
DropOldest,
Reject,
FlowControl,
}Expand description
Backpressure strategy
Variants§
Buffer
Buffer messages (default)
DropOldest
Drop oldest messages when buffer is full
Reject
Reject new messages when buffer is full
FlowControl
Apply flow control to sender
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
Source§impl PartialEq for BackpressureStrategy
impl PartialEq for BackpressureStrategy
impl Copy for BackpressureStrategy
impl Eq for BackpressureStrategy
impl StructuralPartialEq 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