pub trait FileWriter {
// Required methods
fn write_at<'a>(
&'a mut self,
offset: u64,
bytes: &'a [u8],
) -> FileWriteFuture<'a>;
fn set_len(&mut self, len: u64) -> FileWriteFuture<'_>;
fn finish(self: Box<Self>) -> FileFinishFuture;
}Expand description
Writing to a picked file.
Required Methods§
fn write_at<'a>( &'a mut self, offset: u64, bytes: &'a [u8], ) -> FileWriteFuture<'a>
fn set_len(&mut self, len: u64) -> FileWriteFuture<'_>
Sourcefn finish(self: Box<Self>) -> FileFinishFuture
fn finish(self: Box<Self>) -> FileFinishFuture
Ends the writing: on the web the file is replaced only now, and a writer dropped before abandons it; on Android the writes landed in place as they were made.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".