pub trait Delete:
Unpin
+ Send
+ Sync {
// Required methods
fn delete<'a>(
&'a mut self,
path: &'a str,
args: OpDelete,
) -> impl Future<Output = Result<(), Error>> + MaybeSend + 'a;
fn close(&mut self) -> impl Future<Output = Result<(), Error>> + MaybeSend;
}Expand description
The Delete trait defines interfaces for performing deletion operations.
Implementations may execute each request immediately or buffer requests for
batch deletion. Callers must always call Delete::close to flush pending
work before dropping the deleter.
Required Methods§
Sourcefn delete<'a>(
&'a mut self,
path: &'a str,
args: OpDelete,
) -> impl Future<Output = Result<(), Error>> + MaybeSend + 'a
fn delete<'a>( &'a mut self, path: &'a str, args: OpDelete, ) -> impl Future<Output = Result<(), Error>> + MaybeSend + 'a
Request deletion of a resource at the specified path with optional arguments.
A successful return means the deleter has accepted the request. It does not guarantee that all backend work has completed.
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.