MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / finish

Method finish

atomic-core/src/output/filesystem/mod.rs:158–160  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

156 /// This is automatically called when the writer is dropped, but
157 /// calling it explicitly allows you to handle errors.
158 pub fn finish(mut self) -> io::Result<()> {
159 self.writer.flush()
160 }
161}
162
163impl Write for FileWriter {

Callers 3

fmtMethod · 0.45
test_file_writer_finishFunction · 0.45

Calls 1

flushMethod · 0.45