Skip to main content

Attrser

Trait Attrser 

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

Source

fn run_exists( &self, request: ExistsRequest<'_, Self>, ) -> impl Future<Output = Result<bool, Error>> + Send

Runs the request exists made, when it is awaited.

Source

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§

Source

fn exists(&self, key: &str) -> ExistsRequest<'_, Self>

Source

fn attrs(&self, key: &str) -> AttrsRequest<'_, Self>

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>,