Flush and close the writer, returning any errors. This is automatically called when the writer is dropped, but calling it explicitly allows you to handle errors.
(mut self)
| 134 | /// This is automatically called when the writer is dropped, but |
| 135 | /// calling it explicitly allows you to handle errors. |
| 136 | pub fn finish(mut self) -> io::Result<()> { |
| 137 | self.writer.flush() |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | impl Write for FileWriter { |