pub enum BackpressureSchemaStrategy {
Block,
DropOldest,
DropNewest,
Buffer,
}Expand description
Backpressure strategy for streaming output.
Variants§
Block
Block until space is available in the buffer.
DropOldest
Drop oldest items when buffer is full.
DropNewest
Drop newest items when buffer is full.
Buffer
Buffer overflow items up to a limit, then block.
Trait Implementations§
Source§impl Clone for BackpressureSchemaStrategy
impl Clone for BackpressureSchemaStrategy
Source§fn clone(&self) -> BackpressureSchemaStrategy
fn clone(&self) -> BackpressureSchemaStrategy
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 BackpressureSchemaStrategy
impl Debug for BackpressureSchemaStrategy
Source§impl Default for BackpressureSchemaStrategy
impl Default for BackpressureSchemaStrategy
Source§fn default() -> BackpressureSchemaStrategy
fn default() -> BackpressureSchemaStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackpressureSchemaStrategy
impl<'de> Deserialize<'de> for BackpressureSchemaStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for BackpressureSchemaStrategy
impl Eq for BackpressureSchemaStrategy
impl StructuralPartialEq for BackpressureSchemaStrategy
Auto Trait Implementations§
impl Freeze for BackpressureSchemaStrategy
impl RefUnwindSafe for BackpressureSchemaStrategy
impl Send for BackpressureSchemaStrategy
impl Sync for BackpressureSchemaStrategy
impl Unpin for BackpressureSchemaStrategy
impl UnwindSafe for BackpressureSchemaStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.