pub trait StreamingSink<T>: Send {
// Required methods
fn process(&mut self, event: StreamEvent<T>) -> SynthResult<()>;
fn flush(&mut self) -> SynthResult<()>;
fn close(self) -> SynthResult<()>;
fn items_processed(&self) -> u64;
}Expand description
Trait for output sinks that support streaming input.
Required Methods§
Sourcefn process(&mut self, event: StreamEvent<T>) -> SynthResult<()>
fn process(&mut self, event: StreamEvent<T>) -> SynthResult<()>
Processes a stream event.
Sourcefn flush(&mut self) -> SynthResult<()>
fn flush(&mut self) -> SynthResult<()>
Flushes any buffered data.
Sourcefn close(self) -> SynthResult<()>
fn close(self) -> SynthResult<()>
Closes the sink and releases resources.
Sourcefn items_processed(&self) -> u64
fn items_processed(&self) -> u64
Returns the number of items processed.