pub enum FlushPolicy {
Every,
Terminal,
Never,
}Expand description
Controls when the emitter flushes the underlying writer.
Variants§
Every
Flush after every emitted event (default). Ensures real-time visibility.
Terminal
Flush only after terminal events (result/error). Reduces I/O overhead for high-throughput streaming workloads.
Never
Never flush automatically; caller manages flushing via into_inner().
Trait Implementations§
Source§impl Clone for FlushPolicy
impl Clone for FlushPolicy
Source§fn clone(&self) -> FlushPolicy
fn clone(&self) -> FlushPolicy
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 FlushPolicy
impl Debug for FlushPolicy
Source§impl Default for FlushPolicy
impl Default for FlushPolicy
Source§fn default() -> FlushPolicy
fn default() -> FlushPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for FlushPolicy
impl PartialEq for FlushPolicy
impl Copy for FlushPolicy
impl Eq for FlushPolicy
impl StructuralPartialEq for FlushPolicy
Auto Trait Implementations§
impl Freeze for FlushPolicy
impl RefUnwindSafe for FlushPolicy
impl Send for FlushPolicy
impl Sync for FlushPolicy
impl Unpin for FlushPolicy
impl UnsafeUnpin for FlushPolicy
impl UnwindSafe for FlushPolicy
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