#[repr(u32)]pub enum Reliability {
BestEffort = 0,
Reliable = 1,
}Expand description
Whether the substrate drops items under backpressure or blocks the sender until the consumer catches up.
Variants§
BestEffort = 0
Drop items when the ring is full; sender’s try_send
returns Err(Full) immediately. Lowest latency on the send
side; lossy under backpressure.
Reliable = 1
Block-spin the sender (or async-yield) until the ring has capacity. Lossless; latency rises under backpressure.
Trait Implementations§
Source§impl Clone for Reliability
impl Clone for Reliability
Source§fn clone(&self) -> Reliability
fn clone(&self) -> Reliability
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 Reliability
Source§impl Debug for Reliability
impl Debug for Reliability
impl Eq for Reliability
Source§impl PartialEq for Reliability
impl PartialEq for Reliability
Source§fn eq(&self, other: &Reliability) -> bool
fn eq(&self, other: &Reliability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Reliability
Auto Trait Implementations§
impl Freeze for Reliability
impl RefUnwindSafe for Reliability
impl Send for Reliability
impl Sync for Reliability
impl Unpin for Reliability
impl UnsafeUnpin for Reliability
impl UnwindSafe for Reliability
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