#[non_exhaustive]pub struct SinkOptions {
pub queue_capacity: usize,
}Expand description
Sink wiring knobs that live outside connector config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.queue_capacity: usizePer-shard chunk queue capacity, in chunks. The default suits most
pipelines; see docs/DESIGN.md § Backpressure for the sizing rule.
Implementations§
Source§impl SinkOptions
impl SinkOptions
Sourcepub fn with_queue_capacity(self, capacity: usize) -> Self
pub fn with_queue_capacity(self, capacity: usize) -> Self
Override the per-shard queue capacity. (SinkOptions is
#[non_exhaustive], so construct via default() + with_*.)
Trait Implementations§
Source§impl Clone for SinkOptions
impl Clone for SinkOptions
Source§fn clone(&self) -> SinkOptions
fn clone(&self) -> SinkOptions
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 moreSource§impl Debug for SinkOptions
impl Debug for SinkOptions
Auto Trait Implementations§
impl Freeze for SinkOptions
impl RefUnwindSafe for SinkOptions
impl Send for SinkOptions
impl Sync for SinkOptions
impl Unpin for SinkOptions
impl UnsafeUnpin for SinkOptions
impl UnwindSafe for SinkOptions
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