Skip to main content

Attrser

Trait Attrser 

Source
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§

Source

fn exists_with( &self, key: &str, options: ExistsOptions, ) -> impl Future<Output = Result<bool, Error>> + Send

Source

fn attrs_with( &self, key: &str, options: AttrsOptions, ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send

Provided Methods§

Source

fn exists(&self, key: &str) -> impl Future<Output = Result<bool, Error>> + Send

Source

fn attrs( &self, key: &str, ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<P: BucketPerms> Attrser for BucketRef<P>
where P::Attrs: Granted<Attrser>,