pub struct FixedLengthFileWriter { /* private fields */ }Expand description
The writer struct for fixed-length files (.flf).
Implementations§
Source§impl FixedLengthFileWriter
impl FixedLengthFileWriter
Sourcepub fn builder() -> FixedLengthFileWriterBuilder
pub fn builder() -> FixedLengthFileWriterBuilder
Create a new instance of a FixedLengthFileWriterBuilder with default values.
Sourcepub fn properties(&self) -> &FixedLengthFileWriterProperties
pub fn properties(&self) -> &FixedLengthFileWriterProperties
Get the properties of the opened file descriptor.
Trait Implementations§
Source§impl<'a> Writer<'a> for FixedLengthFileWriter
impl<'a> Writer<'a> for FixedLengthFileWriter
Source§fn finish(&mut self)
fn finish(&mut self)
Flush any remaining bytes in the output stream, ensuring that all bytes are written.
§Panics
If not all bytes could be written due to any I/O errors or by reaching EOF.
Source§fn try_finish(&mut self) -> Result<()>
fn try_finish(&mut self) -> Result<()>
Try and flush any remaining bytes in the output stream, ensuring that all bytes are written.
§Errors
If not all bytes could be written due to any I/O errors or by reaching EOF.
Source§fn try_write(&mut self, buffer: Self::Buffer) -> Result<()>
fn try_write(&mut self, buffer: Self::Buffer) -> Result<()>
Try to write the entire buffer to the file by continuously calling write.
§Errors
Each call to write inside this function might generate an I/O error indicating
that the operation could not be completed. If an error is returned, then this is
guaranteed to happen before any bytes are actually written from the buffer.