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§
Sourcefn run_update_attrs(
&self,
request: UpdateAttrsRequest<'_, Self>,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
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.
Sourcefn run_extend_retention(
&self,
request: ExtendRetentionRequest<'_, Self>,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
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§
Sourcefn update_attrs(&self, key: &str) -> UpdateAttrsRequest<'_, Self>
fn update_attrs(&self, key: &str) -> UpdateAttrsRequest<'_, Self>
See Bucket::update_attrs.
Sourcefn extend_retention(
&self,
key: &str,
until: SystemTime,
) -> ExtendRetentionRequest<'_, Self>
fn extend_retention( &self, key: &str, until: SystemTime, ) -> ExtendRetentionRequest<'_, Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".