Skip to main content

IfMatchRemover

Trait IfMatchRemover 

Source
pub trait IfMatchRemover: Send + Sync {
    // Required method
    fn remove_if_match(
        &self,
        key: &str,
        revision: Revision,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description

Remove objects only if they are the revision named. Implemented by a BucketRef granting perms::IfMatchRemover.

Required Methods§

Source

fn remove_if_match( &self, key: &str, revision: Revision, ) -> impl Future<Output = Result<(), Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P: BucketPerms> IfMatchRemover for BucketRef<P>
where P::IfMatchRemove: Granted<IfMatchRemover>,