Trait OneShotDelete

Source
pub trait OneShotDelete:
    Send
    + Sync
    + Unpin
    + 'static {
    // Required method
    fn delete_once(
        &self,
        path: String,
        args: OpDelete,
    ) -> impl Future<Output = Result<()>> + MaybeSend;
}
Expand description

OneShotDelete is used to implement oio::Delete based on one shot operation.

OneShotDeleter will perform delete operation while calling flush.

Required Methods§

Source

fn delete_once( &self, path: String, args: OpDelete, ) -> impl Future<Output = Result<()>> + MaybeSend

delete_once delete one path at once.

Implementations should make sure that the data is deleted correctly at once.

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§