pub trait WriteObjectHandle: ObjectHandle {
// Required methods
fn write_or_append(
&self,
offset: Option<u64>,
buf: BufferRef<'_>,
) -> impl Future<Output = Result<u64, Error>> + Send;
fn truncate(
&self,
size: u64,
) -> impl Future<Output = Result<(), Error>> + Send;
fn flush(&self) -> impl Future<Output = Result<(), Error>> + Send;
}Required Methods§
Sourcefn write_or_append(
&self,
offset: Option<u64>,
buf: BufferRef<'_>,
) -> impl Future<Output = Result<u64, Error>> + Send
fn write_or_append( &self, offset: Option<u64>, buf: BufferRef<'_>, ) -> impl Future<Output = Result<u64, Error>> + Send
Writes |buf.len())| bytes at |offset| (or the end of the file), returning the object size after writing. The writes may be cached, in which case a later call to |flush| is necessary to persist the writes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".