mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 23:47:28 +00:00
use anyhow:Result
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
use anyhow::Error;
|
||||
use anyhow::Result;
|
||||
|
||||
pub struct MakeBucketOptions {}
|
||||
|
||||
pub trait StorageAPI {
|
||||
async fn put_object(&self, bucket: &str, objcet: &str) -> Result<(), Error>;
|
||||
async fn make_bucket(&self, bucket: &str, opts: &MakeBucketOptions) -> Result<()>;
|
||||
|
||||
async fn put_object(&self, bucket: &str, objcet: &str) -> Result<()>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user