pub trait Attrser: Send + Sync {
// Required methods
fn exists_with(
&self,
key: &str,
options: ExistsOptions,
) -> impl Future<Output = Result<bool, Error>> + Send;
fn attrs_with(
&self,
key: &str,
options: AttrsOptions,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send;
// Provided methods
fn exists(
&self,
key: &str,
) -> impl Future<Output = Result<bool, Error>> + Send { ... }
fn attrs(
&self,
key: &str,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send { ... }
}Expand description
Read objects’ attributes, and whether they exist. Implemented by a
BucketRef granting perms::Attrser.
Required Methods§
Sourcefn exists_with(
&self,
key: &str,
options: ExistsOptions,
) -> impl Future<Output = Result<bool, Error>> + Send
fn exists_with( &self, key: &str, options: ExistsOptions, ) -> impl Future<Output = Result<bool, Error>> + Send
See Bucket::exists_with.
Sourcefn attrs_with(
&self,
key: &str,
options: AttrsOptions,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
fn attrs_with( &self, key: &str, options: AttrsOptions, ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
See Bucket::attrs_with.
Provided Methods§
Sourcefn exists(&self, key: &str) -> impl Future<Output = Result<bool, Error>> + Send
fn exists(&self, key: &str) -> impl Future<Output = Result<bool, Error>> + Send
See Bucket::exists.
Sourcefn attrs(
&self,
key: &str,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
fn attrs( &self, key: &str, ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
See Bucket::attrs.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".