pub enum StorageWrapper {
Local(LocalStorage),
S3(S3Storage),
Aliyun(AliyunOssStorage),
Tencent(TencentCosStorage),
Qiniu(QiniuKodoStorage),
Huawei(HuaweiObsStorage),
Upyun(UpYunStorage),
}Variants§
Local(LocalStorage)
S3(S3Storage)
Aliyun(AliyunOssStorage)
Tencent(TencentCosStorage)
Qiniu(QiniuKodoStorage)
Huawei(HuaweiObsStorage)
Upyun(UpYunStorage)
Trait Implementations§
Source§impl Storage for StorageWrapper
impl Storage for StorageWrapper
fn put<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
key: &'life1 str,
data: &'life2 [u8],
content_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for StorageWrapper
impl !UnwindSafe for StorageWrapper
impl Freeze for StorageWrapper
impl Send for StorageWrapper
impl Sync for StorageWrapper
impl Unpin for StorageWrapper
impl UnsafeUnpin for StorageWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more