Skip to main content

Remover

Trait Remover 

Source
pub trait Remover: Send + Sync {
    // Required method
    fn run_remove(
        &self,
        request: RemoveRequest<'_, Self>,
    ) -> impl Future<Output = Result<(), Error>> + Send;

    // Provided method
    fn remove(&self, key: &str) -> RemoveRequest<'_, Self> { ... }
}
Expand description

Remove objects. Implemented by a BucketRef granting perms::Remover.

Required Methods§

Source

fn run_remove( &self, request: RemoveRequest<'_, Self>, ) -> impl Future<Output = Result<(), Error>> + Send

Runs the removal remove made, when it is awaited.

Provided Methods§

Source

fn remove(&self, key: &str) -> RemoveRequest<'_, Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<P: BucketPerms> Remover for BucketRef<P>
where P::Remove: Granted<Remover>,