pub enum Backpressure {
Park,
Drop,
}Expand description
Backpressure behaviour for outbound channels.
Variants§
Park
Writers wait for buffer space when the channel is full.
Drop
Writers drop payloads when the channel is full.
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 · 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 Backpressure
impl Debug for Backpressure
Source§impl From<Backpressure> for Backpressure
impl From<Backpressure> for Backpressure
Source§fn from(value: Backpressure) -> Self
fn from(value: Backpressure) -> Self
Converts to this type from the input type.
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 · 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
Source§impl PartialEq for Backpressure
impl PartialEq for Backpressure
Source§impl PartialOrd for Backpressure
impl PartialOrd for Backpressure
Source§impl TryFrom<Backpressure> for Backpressure
impl TryFrom<Backpressure> for Backpressure
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
impl Copy for Backpressure
impl Eq 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 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