pub enum Backpressure {
Block,
Reject,
Drop,
Spill,
Coalesce,
}Expand description
Backpressure dimension. Not ordered: these are behaviours, not strengths, so two peers state the same one or fail to negotiate.
Variants§
Block
v0 for Req/Rep and Push/Pull.
Reject
Refuse past a cap.
Drop
v0 for fan-out.
Spill
Reserved.
Coalesce
Reserved.
Implementations§
Trait Implementations§
Source§impl Clone for Backpressure
impl Clone for Backpressure
Source§fn clone(&self) -> Backpressure
fn clone(&self) -> Backpressure
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 Backpressure
Source§impl Debug for Backpressure
impl Debug for Backpressure
Source§impl Default for Backpressure
impl Default for Backpressure
Source§fn default() -> Backpressure
fn default() -> Backpressure
Returns the “default value” for a type. Read more
impl Eq for Backpressure
Source§impl Hash for Backpressure
impl Hash for Backpressure
Source§impl Ord for Backpressure
impl Ord for Backpressure
Source§fn cmp(&self, other: &Backpressure) -> Ordering
fn cmp(&self, other: &Backpressure) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Backpressure
impl PartialEq for Backpressure
Source§impl PartialOrd for Backpressure
impl PartialOrd for Backpressure
impl StructuralPartialEq for Backpressure
Auto Trait Implementations§
impl Freeze for Backpressure
impl RefUnwindSafe for Backpressure
impl Send for Backpressure
impl Sync for Backpressure
impl Unpin for Backpressure
impl UnsafeUnpin for Backpressure
impl UnwindSafe for Backpressure
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