pub struct SinkBufferConfig {
pub max_items: usize,
pub max_bytes: Option<usize>,
pub flush_on_write: bool,
}Expand description
Configuration for buffered sinks.
Fields§
§max_items: usizeMaximum number of items to buffer before flushing.
max_bytes: Option<usize>Maximum bytes to buffer before flushing (if applicable).
flush_on_write: boolFlush on every write (for debugging).
Trait Implementations§
Source§impl Clone for SinkBufferConfig
impl Clone for SinkBufferConfig
Source§fn clone(&self) -> SinkBufferConfig
fn clone(&self) -> SinkBufferConfig
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 SinkBufferConfig
impl Debug for SinkBufferConfig
Auto Trait Implementations§
impl Freeze for SinkBufferConfig
impl RefUnwindSafe for SinkBufferConfig
impl Send for SinkBufferConfig
impl Sync for SinkBufferConfig
impl Unpin for SinkBufferConfig
impl UnwindSafe for SinkBufferConfig
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