Trait SeekWrite Copy item path Source pub trait SeekWrite {
// Required method
fn seek_write (&mut self, input: &[u8 ], offset: u64 ) -> Result <usize , Error >;
// Provided method
fn seek_write_all (&mut self, input: &[u8 ], offset: u64 ) -> Result <() , Error > { ... }
}
Expand description Trait to permit an atomic Seek+Write operation
Seek to the provided offset, relative to the start of the stream, and write some bytes
from the provided buffer. The number of bytes written is returned.
Writes all the data to the provided offset. May require multiple file ops & seeks
if the calls do not write all the data.
Source § Available on crate feature std
only.