Trait opendal::raw::LayeredAccess

source ·
pub trait LayeredAccess: Send + Sync + Debug + Unpin + 'static {
    type Inner: Access;
    type Reader: Read;
    type BlockingReader: BlockingRead;
    type Writer: Write;
    type BlockingWriter: BlockingWrite;
    type Lister: List;
    type BlockingLister: BlockingList;

Show 20 methods // Required methods fn inner(&self) -> &Self::Inner; fn read( &self, path: &str, args: OpRead, ) -> impl Future<Output = Result<(RpRead, Self::Reader)>> + MaybeSend; fn write( &self, path: &str, args: OpWrite, ) -> impl Future<Output = Result<(RpWrite, Self::Writer)>> + MaybeSend; fn list( &self, path: &str, args: OpList, ) -> impl Future<Output = Result<(RpList, Self::Lister)>> + MaybeSend; fn blocking_read( &self, path: &str, args: OpRead, ) -> Result<(RpRead, Self::BlockingReader)>; fn blocking_write( &self, path: &str, args: OpWrite, ) -> Result<(RpWrite, Self::BlockingWriter)>; fn blocking_list( &self, path: &str, args: OpList, ) -> Result<(RpList, Self::BlockingLister)>; // Provided methods fn info(&self) -> Arc<AccessorInfo> { ... } fn create_dir( &self, path: &str, args: OpCreateDir, ) -> impl Future<Output = Result<RpCreateDir>> + MaybeSend { ... } fn copy( &self, from: &str, to: &str, args: OpCopy, ) -> impl Future<Output = Result<RpCopy>> + MaybeSend { ... } fn rename( &self, from: &str, to: &str, args: OpRename, ) -> impl Future<Output = Result<RpRename>> + MaybeSend { ... } fn stat( &self, path: &str, args: OpStat, ) -> impl Future<Output = Result<RpStat>> + MaybeSend { ... } fn delete( &self, path: &str, args: OpDelete, ) -> impl Future<Output = Result<RpDelete>> + MaybeSend { ... } fn batch( &self, args: OpBatch, ) -> impl Future<Output = Result<RpBatch>> + MaybeSend { ... } fn presign( &self, path: &str, args: OpPresign, ) -> impl Future<Output = Result<RpPresign>> + MaybeSend { ... } fn blocking_create_dir( &self, path: &str, args: OpCreateDir, ) -> Result<RpCreateDir> { ... } fn blocking_copy( &self, from: &str, to: &str, args: OpCopy, ) -> Result<RpCopy> { ... } fn blocking_rename( &self, from: &str, to: &str, args: OpRename, ) -> Result<RpRename> { ... } fn blocking_stat(&self, path: &str, args: OpStat) -> Result<RpStat> { ... } fn blocking_delete(&self, path: &str, args: OpDelete) -> Result<RpDelete> { ... }
}
Expand description

LayeredAccess is layered accessor that forward all not implemented method to inner.

Required Associated Types§

Required Methods§

source

fn inner(&self) -> &Self::Inner

source

fn read( &self, path: &str, args: OpRead, ) -> impl Future<Output = Result<(RpRead, Self::Reader)>> + MaybeSend

source

fn write( &self, path: &str, args: OpWrite, ) -> impl Future<Output = Result<(RpWrite, Self::Writer)>> + MaybeSend

source

fn list( &self, path: &str, args: OpList, ) -> impl Future<Output = Result<(RpList, Self::Lister)>> + MaybeSend

source

fn blocking_read( &self, path: &str, args: OpRead, ) -> Result<(RpRead, Self::BlockingReader)>

source

fn blocking_write( &self, path: &str, args: OpWrite, ) -> Result<(RpWrite, Self::BlockingWriter)>

source

fn blocking_list( &self, path: &str, args: OpList, ) -> Result<(RpList, Self::BlockingLister)>

Provided Methods§

source

fn info(&self) -> Arc<AccessorInfo>

source

fn create_dir( &self, path: &str, args: OpCreateDir, ) -> impl Future<Output = Result<RpCreateDir>> + MaybeSend

source

fn copy( &self, from: &str, to: &str, args: OpCopy, ) -> impl Future<Output = Result<RpCopy>> + MaybeSend

source

fn rename( &self, from: &str, to: &str, args: OpRename, ) -> impl Future<Output = Result<RpRename>> + MaybeSend

source

fn stat( &self, path: &str, args: OpStat, ) -> impl Future<Output = Result<RpStat>> + MaybeSend

source

fn delete( &self, path: &str, args: OpDelete, ) -> impl Future<Output = Result<RpDelete>> + MaybeSend

source

fn batch( &self, args: OpBatch, ) -> impl Future<Output = Result<RpBatch>> + MaybeSend

source

fn presign( &self, path: &str, args: OpPresign, ) -> impl Future<Output = Result<RpPresign>> + MaybeSend

source

fn blocking_create_dir( &self, path: &str, args: OpCreateDir, ) -> Result<RpCreateDir>

source

fn blocking_copy(&self, from: &str, to: &str, args: OpCopy) -> Result<RpCopy>

source

fn blocking_rename( &self, from: &str, to: &str, args: OpRename, ) -> Result<RpRename>

source

fn blocking_stat(&self, path: &str, args: OpStat) -> Result<RpStat>

source

fn blocking_delete(&self, path: &str, args: OpDelete) -> Result<RpDelete>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<A: Access, I: MetricsIntercept> LayeredAccess for MetricsAccessor<A, I>

§

type Inner = A

§

type Reader = MetricsWrapper<<A as Access>::Reader, I>

§

type BlockingReader = MetricsWrapper<<A as Access>::BlockingReader, I>

§

type Writer = MetricsWrapper<<A as Access>::Writer, I>

§

type BlockingWriter = MetricsWrapper<<A as Access>::BlockingWriter, I>

§

type Lister = MetricsWrapper<<A as Access>::Lister, I>

§

type BlockingLister = MetricsWrapper<<A as Access>::BlockingLister, I>