Struct spring_batch_rs::CsvItemWriter
source · pub struct CsvItemWriter<T: Write> { /* private fields */ }Implementations§
source§impl<T: Write> CsvItemWriter<T>
impl<T: Write> CsvItemWriter<T>
pub fn into_inner(self) -> Result<T, BatchError>
Trait Implementations§
source§impl<T: Write, R: Serialize> ItemWriter<R> for CsvItemWriter<T>
impl<T: Write, R: Serialize> ItemWriter<R> for CsvItemWriter<T>
source§fn flush(&self) -> Result<(), BatchError>
fn flush(&self) -> Result<(), BatchError>
Flush the contents of the internal buffer to the underlying writer.
If there was a problem writing to the underlying writer, then an error is returned.
Note that this also flushes the underlying writer.
fn write(&self, item: &R) -> Result<(), BatchError>
fn open(&self) -> Result<(), BatchError>
fn update(&self, _is_first_item: bool) -> Result<(), BatchError>
fn close(&self) -> Result<(), BatchError>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for CsvItemWriter<T>
impl<T> Send for CsvItemWriter<T>where
T: Send,
impl<T> !Sync for CsvItemWriter<T>
impl<T> Unpin for CsvItemWriter<T>where
T: Unpin,
impl<T> UnwindSafe for CsvItemWriter<T>where
T: UnwindSafe,
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