DavWriteHandle

Trait DavWriteHandle 

Source
pub trait DavWriteHandle: Send {
    // Required methods
    fn write_bytes(
        &mut self,
        buf: Bytes,
    ) -> impl Future<Output = Result<(), DavBackendError>> + Send + '_;
    fn finish(self) -> impl Future<Output = Result<(), DavBackendError>> + Send;
    fn abort(self) -> impl Future<Output = Result<(), DavBackendError>> + Send;
}
Expand description

Sequential write handle. A successful finish is the product adapter’s commit boundary.

Dropping a handle before finish or abort must roll back or clean up the uncommitted write. It must never commit implicitly or leak staging resources. abort is the explicit abandonment path and must perform the same cleanup before it returns.

Required Methods§

Source

fn write_bytes( &mut self, buf: Bytes, ) -> impl Future<Output = Result<(), DavBackendError>> + Send + '_

Source

fn finish(self) -> impl Future<Output = Result<(), DavBackendError>> + Send

Source

fn abort(self) -> impl Future<Output = Result<(), DavBackendError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§