pub trait AccessDyn:
Send
+ Sync
+ Debug
+ Unpin {
// Required methods
fn info_dyn(&self) -> Arc<AccessorInfo>;
fn create_dir_dyn<'a>(
&'a self,
path: &'a str,
args: OpCreateDir,
) -> BoxedFuture<'a, Result<RpCreateDir>>;
fn stat_dyn<'a>(
&'a self,
path: &'a str,
args: OpStat,
) -> BoxedFuture<'a, Result<RpStat>>;
fn read_dyn<'a>(
&'a self,
path: &'a str,
args: OpRead,
) -> BoxedFuture<'a, Result<(RpRead, Reader)>>;
fn write_dyn<'a>(
&'a self,
path: &'a str,
args: OpWrite,
) -> BoxedFuture<'a, Result<(RpWrite, Writer)>>;
fn delete_dyn(&self) -> BoxedFuture<'_, Result<(RpDelete, Deleter)>>;
fn list_dyn<'a>(
&'a self,
path: &'a str,
args: OpList,
) -> BoxedFuture<'a, Result<(RpList, Lister)>>;
fn copy_dyn<'a>(
&'a self,
from: &'a str,
to: &'a str,
args: OpCopy,
) -> BoxedFuture<'a, Result<RpCopy>>;
fn rename_dyn<'a>(
&'a self,
from: &'a str,
to: &'a str,
args: OpRename,
) -> BoxedFuture<'a, Result<RpRename>>;
fn presign_dyn<'a>(
&'a self,
path: &'a str,
args: OpPresign,
) -> BoxedFuture<'a, Result<RpPresign>>;
}
Expand description
AccessDyn
is the dyn version of Access
make it possible to use as
Box<dyn AccessDyn>
.
Required Methods§
Sourcefn info_dyn(&self) -> Arc<AccessorInfo>
fn info_dyn(&self) -> Arc<AccessorInfo>
Dyn version of Accessor::info
Sourcefn create_dir_dyn<'a>(
&'a self,
path: &'a str,
args: OpCreateDir,
) -> BoxedFuture<'a, Result<RpCreateDir>>
fn create_dir_dyn<'a>( &'a self, path: &'a str, args: OpCreateDir, ) -> BoxedFuture<'a, Result<RpCreateDir>>
Dyn version of Accessor::create_dir
Sourcefn stat_dyn<'a>(
&'a self,
path: &'a str,
args: OpStat,
) -> BoxedFuture<'a, Result<RpStat>>
fn stat_dyn<'a>( &'a self, path: &'a str, args: OpStat, ) -> BoxedFuture<'a, Result<RpStat>>
Dyn version of Accessor::stat
Sourcefn read_dyn<'a>(
&'a self,
path: &'a str,
args: OpRead,
) -> BoxedFuture<'a, Result<(RpRead, Reader)>>
fn read_dyn<'a>( &'a self, path: &'a str, args: OpRead, ) -> BoxedFuture<'a, Result<(RpRead, Reader)>>
Dyn version of Accessor::read
Sourcefn write_dyn<'a>(
&'a self,
path: &'a str,
args: OpWrite,
) -> BoxedFuture<'a, Result<(RpWrite, Writer)>>
fn write_dyn<'a>( &'a self, path: &'a str, args: OpWrite, ) -> BoxedFuture<'a, Result<(RpWrite, Writer)>>
Dyn version of Accessor::write
Sourcefn delete_dyn(&self) -> BoxedFuture<'_, Result<(RpDelete, Deleter)>>
fn delete_dyn(&self) -> BoxedFuture<'_, Result<(RpDelete, Deleter)>>
Dyn version of Accessor::delete
Sourcefn list_dyn<'a>(
&'a self,
path: &'a str,
args: OpList,
) -> BoxedFuture<'a, Result<(RpList, Lister)>>
fn list_dyn<'a>( &'a self, path: &'a str, args: OpList, ) -> BoxedFuture<'a, Result<(RpList, Lister)>>
Dyn version of Accessor::list
Sourcefn copy_dyn<'a>(
&'a self,
from: &'a str,
to: &'a str,
args: OpCopy,
) -> BoxedFuture<'a, Result<RpCopy>>
fn copy_dyn<'a>( &'a self, from: &'a str, to: &'a str, args: OpCopy, ) -> BoxedFuture<'a, Result<RpCopy>>
Dyn version of Accessor::copy
Sourcefn rename_dyn<'a>(
&'a self,
from: &'a str,
to: &'a str,
args: OpRename,
) -> BoxedFuture<'a, Result<RpRename>>
fn rename_dyn<'a>( &'a self, from: &'a str, to: &'a str, args: OpRename, ) -> BoxedFuture<'a, Result<RpRename>>
Dyn version of Accessor::rename
Sourcefn presign_dyn<'a>(
&'a self,
path: &'a str,
args: OpPresign,
) -> BoxedFuture<'a, Result<RpPresign>>
fn presign_dyn<'a>( &'a self, path: &'a str, args: OpPresign, ) -> BoxedFuture<'a, Result<RpPresign>>
Dyn version of Accessor::presign
Trait Implementations§
Source§impl Access for dyn AccessDyn
impl Access for dyn AccessDyn
Source§type Deleter = Box<dyn DeleteDyn>
type Deleter = Box<dyn DeleteDyn>
Deleter is the associated deleter returned in
delete
operation.Source§fn info(&self) -> Arc<AccessorInfo>
fn info(&self) -> Arc<AccessorInfo>
Invoke the
info
operation to get metadata of accessor. Read moreSource§async fn create_dir(&self, path: &str, args: OpCreateDir) -> Result<RpCreateDir>
async fn create_dir(&self, path: &str, args: OpCreateDir) -> Result<RpCreateDir>
Invoke the
create
operation on the specified path Read moreSource§async fn stat(&self, path: &str, args: OpStat) -> Result<RpStat>
async fn stat(&self, path: &str, args: OpStat) -> Result<RpStat>
Invoke the
stat
operation on the specified path. Read moreSource§async fn write(
&self,
path: &str,
args: OpWrite,
) -> Result<(RpWrite, Self::Writer)>
async fn write( &self, path: &str, args: OpWrite, ) -> Result<(RpWrite, Self::Writer)>
Invoke the
write
operation on the specified path, returns a
written size if operate successful. Read moreSource§async fn delete(&self) -> Result<(RpDelete, Self::Deleter)>
async fn delete(&self) -> Result<(RpDelete, Self::Deleter)>
Invoke the
delete
operation on the specified path. Read moreSource§async fn list(&self, path: &str, args: OpList) -> Result<(RpList, Self::Lister)>
async fn list(&self, path: &str, args: OpList) -> Result<(RpList, Self::Lister)>
Invoke the
list
operation on the specified path. Read more