pub trait Attrser: Send + Sync {
// Required methods
fn run_exists(
&self,
request: ExistsRequest<'_, Self>,
) -> impl Future<Output = Result<bool, Error>> + Send;
fn run_attrs(
&self,
request: AttrsRequest<'_, Self>,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send;
// Provided methods
fn exists(&self, key: &str) -> ExistsRequest<'_, Self> { ... }
fn attrs(&self, key: &str) -> AttrsRequest<'_, Self> { ... }
}Expand description
Read objects’ attributes, and whether they exist. Implemented by a
BucketRef granting perms::Attrser.
Required Methods§
Sourcefn run_exists(
&self,
request: ExistsRequest<'_, Self>,
) -> impl Future<Output = Result<bool, Error>> + Send
fn run_exists( &self, request: ExistsRequest<'_, Self>, ) -> impl Future<Output = Result<bool, Error>> + Send
Runs the request exists made, when it is awaited.
Sourcefn run_attrs(
&self,
request: AttrsRequest<'_, Self>,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
fn run_attrs( &self, request: AttrsRequest<'_, Self>, ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
Runs the request attrs made, when it is awaited.
Provided Methods§
Sourcefn exists(&self, key: &str) -> ExistsRequest<'_, Self>
fn exists(&self, key: &str) -> ExistsRequest<'_, Self>
See Bucket::exists.
Sourcefn attrs(&self, key: &str) -> AttrsRequest<'_, Self>
fn attrs(&self, key: &str) -> AttrsRequest<'_, Self>
See Bucket::attrs.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".