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

Method finish

atomic-core/src/output/filesystem/mod.rs:136–138  ·  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

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
141impl Write for FileWriter {

Callers 2

fmtMethod · 0.45
test_file_writer_finishFunction · 0.45

Calls 1

flushMethod · 0.45

Tested by 1

test_file_writer_finishFunction · 0.36