DavRandomWriteHandle

Trait DavRandomWriteHandle 

Source
pub trait DavRandomWriteHandle: Send {
    // Required methods
    fn write_at(
        &mut self,
        offset: u64,
        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

Explicit random-write handle used only by negotiated partial-write capabilities.

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. finish remains the sole commit boundary, while abort is the explicit abandonment and cleanup path.

Required Methods§

Source

fn write_at( &mut self, offset: u64, 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§