pub struct StreamingConfig {
pub policy: FlushPolicy,
}Expand description
Configuration for streaming MDF4 writes.
Fields§
§policy: FlushPolicyThe flush policy to use.
Implementations§
Source§impl StreamingConfig
impl StreamingConfig
Sourcepub fn every_n_records(n: u64) -> Self
pub fn every_n_records(n: u64) -> Self
Create a streaming configuration that flushes every N records.
Sourcepub fn every_n_bytes(n: u64) -> Self
pub fn every_n_bytes(n: u64) -> Self
Create a streaming configuration that flushes every N bytes.
Trait Implementations§
Source§impl Clone for StreamingConfig
impl Clone for StreamingConfig
Source§fn clone(&self) -> StreamingConfig
fn clone(&self) -> StreamingConfig
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 StreamingConfig
impl Debug for StreamingConfig
Source§impl Default for StreamingConfig
impl Default for StreamingConfig
Source§fn default() -> StreamingConfig
fn default() -> StreamingConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingConfig
impl RefUnwindSafe for StreamingConfig
impl Send for StreamingConfig
impl Sync for StreamingConfig
impl Unpin for StreamingConfig
impl UnwindSafe for StreamingConfig
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