Struct s3handler::tokio_async::primitives::FilePool
source · pub struct FilePool {
pub drive: String,
}
Fields§
§drive: String
use “/” for *nix, “C://” for windows (not tested)
Implementations§
Trait Implementations§
source§impl DataPool for FilePool
impl DataPool for FilePool
fn push<'life0, 'async_trait>(
&'life0 self,
desc: S3Object,
object: Bytes
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pull<'life0, 'async_trait>(
&'life0 self,
desc: S3Object
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
index: Option<S3Object>,
filter: &'life1 Option<Filter>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn S3Folder>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
index: Option<S3Object>,
filter: &'life1 Option<Filter>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn S3Folder>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The index will be treated as a folder object to filter the list results
fn remove<'life0, 'async_trait>(
&'life0 self,
desc: S3Object
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_scheme(&self, _scheme: &str) -> Result<(), Error>
source§fn fetch_meta<'life0, 'life1, 'async_trait>(
&'life0 self,
_desc: &'life1 mut S3Object
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_meta<'life0, 'life1, 'async_trait>(
&'life0 self,
_desc: &'life1 mut S3Object
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
TODO: sync feature
This method is for the sync feature