Trait ItemWriter

Source
pub trait ItemWriter<W> {
    // Required method
    fn write(&self, items: &[W]) -> ItemWriterResult;

    // Provided methods
    fn flush(&self) -> ItemWriterResult { ... }
    fn open(&self) -> ItemWriterResult { ... }
    fn close(&self) -> ItemWriterResult { ... }
}
Expand description

A trait for writing items.

Required Methods§

Source

fn write(&self, items: &[W]) -> ItemWriterResult

Writes the given items.

Provided Methods§

Source

fn flush(&self) -> ItemWriterResult

Flushes any buffered data.

Source

fn open(&self) -> ItemWriterResult

Opens the writer.

Source

fn close(&self) -> ItemWriterResult

Closes the writer.

Implementors§