pub trait AccessDyn: Send + Sync + Debug + Unpin {
Show 19 methods
// 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<'a>(
&'a self,
path: &'a str,
args: OpDelete,
) -> BoxedFuture<'a, Result<RpDelete>>;
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>>;
fn batch_dyn(&self, args: OpBatch) -> BoxedFuture<'_, Result<RpBatch>>;
fn blocking_create_dir_dyn(
&self,
path: &str,
args: OpCreateDir,
) -> Result<RpCreateDir>;
fn blocking_stat_dyn(&self, path: &str, args: OpStat) -> Result<RpStat>;
fn blocking_read_dyn(
&self,
path: &str,
args: OpRead,
) -> Result<(RpRead, BlockingReader)>;
fn blocking_write_dyn(
&self,
path: &str,
args: OpWrite,
) -> Result<(RpWrite, BlockingWriter)>;
fn blocking_delete_dyn(
&self,
path: &str,
args: OpDelete,
) -> Result<RpDelete>;
fn blocking_list_dyn(
&self,
path: &str,
args: OpList,
) -> Result<(RpList, BlockingLister)>;
fn blocking_copy_dyn(
&self,
from: &str,
to: &str,
args: OpCopy,
) -> Result<RpCopy>;
fn blocking_rename_dyn(
&self,
from: &str,
to: &str,
args: OpRename,
) -> Result<RpRename>;
}
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<'a>(
&'a self,
path: &'a str,
args: OpDelete,
) -> BoxedFuture<'a, Result<RpDelete>>
fn delete_dyn<'a>( &'a self, path: &'a str, args: OpDelete, ) -> BoxedFuture<'a, Result<RpDelete>>
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
sourcefn batch_dyn(&self, args: OpBatch) -> BoxedFuture<'_, Result<RpBatch>>
fn batch_dyn(&self, args: OpBatch) -> BoxedFuture<'_, Result<RpBatch>>
Dyn version of Accessor::batch
sourcefn blocking_create_dir_dyn(
&self,
path: &str,
args: OpCreateDir,
) -> Result<RpCreateDir>
fn blocking_create_dir_dyn( &self, path: &str, args: OpCreateDir, ) -> Result<RpCreateDir>
Dyn version of Accessor::blocking_create_dir
sourcefn blocking_stat_dyn(&self, path: &str, args: OpStat) -> Result<RpStat>
fn blocking_stat_dyn(&self, path: &str, args: OpStat) -> Result<RpStat>
Dyn version of Accessor::blocking_stat
sourcefn blocking_read_dyn(
&self,
path: &str,
args: OpRead,
) -> Result<(RpRead, BlockingReader)>
fn blocking_read_dyn( &self, path: &str, args: OpRead, ) -> Result<(RpRead, BlockingReader)>
Dyn version of Accessor::blocking_read
sourcefn blocking_write_dyn(
&self,
path: &str,
args: OpWrite,
) -> Result<(RpWrite, BlockingWriter)>
fn blocking_write_dyn( &self, path: &str, args: OpWrite, ) -> Result<(RpWrite, BlockingWriter)>
Dyn version of Accessor::blocking_write
sourcefn blocking_delete_dyn(&self, path: &str, args: OpDelete) -> Result<RpDelete>
fn blocking_delete_dyn(&self, path: &str, args: OpDelete) -> Result<RpDelete>
Dyn version of Accessor::blocking_delete
sourcefn blocking_list_dyn(
&self,
path: &str,
args: OpList,
) -> Result<(RpList, BlockingLister)>
fn blocking_list_dyn( &self, path: &str, args: OpList, ) -> Result<(RpList, BlockingLister)>
Dyn version of Accessor::blocking_list
sourcefn blocking_copy_dyn(
&self,
from: &str,
to: &str,
args: OpCopy,
) -> Result<RpCopy>
fn blocking_copy_dyn( &self, from: &str, to: &str, args: OpCopy, ) -> Result<RpCopy>
Dyn version of Accessor::blocking_copy
sourcefn blocking_rename_dyn(
&self,
from: &str,
to: &str,
args: OpRename,
) -> Result<RpRename>
fn blocking_rename_dyn( &self, from: &str, to: &str, args: OpRename, ) -> Result<RpRename>
Dyn version of Accessor::blocking_rename
Trait Implementations§
source§impl Access for dyn AccessDyn
impl Access for dyn AccessDyn
§type BlockingReader = Box<dyn BlockingRead>
type BlockingReader = Box<dyn BlockingRead>
BlockingReader is the associated reader returned
blocking_read
operation.§type BlockingWriter = Box<dyn BlockingWrite>
type BlockingWriter = Box<dyn BlockingWrite>
BlockingWriter is the associated writer returned
blocking_write
operation.§type BlockingLister = Box<dyn BlockingList>
type BlockingLister = Box<dyn BlockingList>
BlockingLister is the associated lister returned
blocking_list
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, path: &str, args: OpDelete) -> Result<RpDelete>
async fn delete(&self, path: &str, args: OpDelete) -> Result<RpDelete>
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 moresource§async fn presign(&self, path: &str, args: OpPresign) -> Result<RpPresign>
async fn presign(&self, path: &str, args: OpPresign) -> Result<RpPresign>
Invoke the
presign
operation on the specified path. Read moresource§fn batch(
&self,
args: OpBatch,
) -> impl Future<Output = Result<RpBatch>> + MaybeSend
fn batch( &self, args: OpBatch, ) -> impl Future<Output = Result<RpBatch>> + MaybeSend
Invoke the
batch
operations. Read moresource§fn blocking_create_dir(
&self,
path: &str,
args: OpCreateDir,
) -> Result<RpCreateDir>
fn blocking_create_dir( &self, path: &str, args: OpCreateDir, ) -> Result<RpCreateDir>
Invoke the
blocking_create
operation on the specified path. Read moresource§fn blocking_read(
&self,
path: &str,
args: OpRead,
) -> Result<(RpRead, Self::BlockingReader)>
fn blocking_read( &self, path: &str, args: OpRead, ) -> Result<(RpRead, Self::BlockingReader)>
Invoke the
blocking_read
operation on the specified path. Read moresource§fn blocking_stat(&self, path: &str, args: OpStat) -> Result<RpStat>
fn blocking_stat(&self, path: &str, args: OpStat) -> Result<RpStat>
Invoke the
blocking_stat
operation on the specified path. Read moresource§fn blocking_write(
&self,
path: &str,
args: OpWrite,
) -> Result<(RpWrite, Self::BlockingWriter)>
fn blocking_write( &self, path: &str, args: OpWrite, ) -> Result<(RpWrite, Self::BlockingWriter)>
Invoke the
blocking_write
operation on the specified path. Read moresource§fn blocking_delete(&self, path: &str, args: OpDelete) -> Result<RpDelete>
fn blocking_delete(&self, path: &str, args: OpDelete) -> Result<RpDelete>
Invoke the
blocking_delete
operation on the specified path. Read moresource§fn blocking_list(
&self,
path: &str,
args: OpList,
) -> Result<(RpList, Self::BlockingLister)>
fn blocking_list( &self, path: &str, args: OpList, ) -> Result<(RpList, Self::BlockingLister)>
Invoke the
blocking_list
operation on the specified path. Read more