Skip to main content

AttrsUpdater

Trait AttrsUpdater 

Source
pub trait AttrsUpdater: Send + Sync {
    // Required methods
    fn run_update_attrs(
        &self,
        request: UpdateAttrsRequest<'_, Self>,
    ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send;
    fn run_extend_retention(
        &self,
        request: ExtendRetentionRequest<'_, Self>,
    ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send;

    // Provided methods
    fn update_attrs(&self, key: &str) -> UpdateAttrsRequest<'_, Self> { ... }
    fn extend_retention(
        &self,
        key: &str,
        until: SystemTime,
    ) -> ExtendRetentionRequest<'_, Self> { ... }
}
Expand description

Change objects’ attributes and extend their retention. Implemented by a BucketRef granting perms::AttrsUpdater.

Required Methods§

Source

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

Runs the change update_attrs made, when it is awaited.

Source

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

Runs the extension extend_retention made, when it is awaited.

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<P: BucketPerms> AttrsUpdater for BucketRef<P>
where P::UpdateAttrs: Granted<AttrsUpdater>,