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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".