Skip to main content

BucketOperations

Trait BucketOperations 

Source
pub trait BucketOperations:
    Send
    + Sync
    + Debug {
    type Error: Error + Send + Sync + 'static;

    // Required methods
    fn make_bucket<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        opts: &'life2 MakeBucketOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_bucket_info<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        opts: &'life2 BucketOptions,
    ) -> Pin<Box<dyn Future<Output = Result<BucketInfo, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn list_bucket<'life0, 'life1, 'async_trait>(
        &'life0 self,
        opts: &'life1 BucketOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<BucketInfo>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_bucket<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        opts: &'life2 DeleteBucketOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Bucket-level storage operations.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn make_bucket<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, opts: &'life2 MakeBucketOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_bucket_info<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, opts: &'life2 BucketOptions, ) -> Pin<Box<dyn Future<Output = Result<BucketInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn list_bucket<'life0, 'life1, 'async_trait>( &'life0 self, opts: &'life1 BucketOptions, ) -> Pin<Box<dyn Future<Output = Result<Vec<BucketInfo>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_bucket<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, opts: &'life2 DeleteBucketOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§