pub enum BackpressurePolicy {
BlockOnFull,
DropOldest,
DropLatest,
}Expand description
the Backpressure policy
Variants§
BlockOnFull
Block the sender when the queue is full
DropOldest
Drop the oldest item when the queue is full
DropLatest
Drop the latest item when the queue is full
Trait Implementations§
Source§impl Clone for BackpressurePolicy
impl Clone for BackpressurePolicy
Source§fn clone(&self) -> BackpressurePolicy
fn clone(&self) -> BackpressurePolicy
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 Default for BackpressurePolicy
impl Default for BackpressurePolicy
Source§fn default() -> BackpressurePolicy
fn default() -> BackpressurePolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackpressurePolicy
impl RefUnwindSafe for BackpressurePolicy
impl Send for BackpressurePolicy
impl Sync for BackpressurePolicy
impl Unpin for BackpressurePolicy
impl UnwindSafe for BackpressurePolicy
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