pub trait LayeredAccessor: Send + Sync + Debug + Unpin + 'static {
    type Inner: Accessor;
    type Reader: Read;
    type BlockingReader: BlockingRead;

Show 19 methods fn inner(&self) -> &Self::Inner; fn read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpRead
    ) -> Pin<Box<dyn Future<Output = Result<(RpRead, Self::Reader)>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; fn blocking_read(
        &self,
        path: &str,
        args: OpRead
    ) -> Result<(RpRead, Self::BlockingReader)>; fn metadata(&self) -> AccessorMetadata { ... } fn create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpCreate
    ) -> Pin<Box<dyn Future<Output = Result<RpCreate>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn write<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpWrite,
        r: Reader
    ) -> Pin<Box<dyn Future<Output = Result<RpWrite>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn stat<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpStat
    ) -> Pin<Box<dyn Future<Output = Result<RpStat>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpDelete
    ) -> Pin<Box<dyn Future<Output = Result<RpDelete>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn list<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpList
    ) -> Pin<Box<dyn Future<Output = Result<(RpList, ObjectPager)>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn presign(&self, path: &str, args: OpPresign) -> Result<RpPresign> { ... } fn create_multipart<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpCreateMultipart
    ) -> Pin<Box<dyn Future<Output = Result<RpCreateMultipart>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn write_multipart<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpWriteMultipart,
        r: Reader
    ) -> Pin<Box<dyn Future<Output = Result<RpWriteMultipart>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn complete_multipart<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpCompleteMultipart
    ) -> Pin<Box<dyn Future<Output = Result<RpCompleteMultipart>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn abort_multipart<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        args: OpAbortMultipart
    ) -> Pin<Box<dyn Future<Output = Result<RpAbortMultipart>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
, { ... } fn blocking_create(&self, path: &str, args: OpCreate) -> Result<RpCreate> { ... } fn blocking_write(
        &self,
        path: &str,
        args: OpWrite,
        r: BlockingReader
    ) -> Result<RpWrite> { ... } fn blocking_stat(&self, path: &str, args: OpStat) -> Result<RpStat> { ... } fn blocking_delete(&self, path: &str, args: OpDelete) -> Result<RpDelete> { ... } fn blocking_list(
        &self,
        path: &str,
        args: OpList
    ) -> Result<(RpList, BlockingObjectPager)> { ... }
}
Expand description

LayeredAccessor 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<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpRead
) -> Pin<Box<dyn Future<Output = Result<(RpRead, Self::Reader)>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

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

Provided Methods§

source

fn metadata(&self) -> AccessorMetadata

source

fn create<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpCreate
) -> Pin<Box<dyn Future<Output = Result<RpCreate>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn write<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpWrite,
    r: Reader
) -> Pin<Box<dyn Future<Output = Result<RpWrite>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn stat<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpStat
) -> Pin<Box<dyn Future<Output = Result<RpStat>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn delete<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpDelete
) -> Pin<Box<dyn Future<Output = Result<RpDelete>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn list<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpList
) -> Pin<Box<dyn Future<Output = Result<(RpList, ObjectPager)>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn presign(&self, path: &str, args: OpPresign) -> Result<RpPresign>

source

fn create_multipart<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpCreateMultipart
) -> Pin<Box<dyn Future<Output = Result<RpCreateMultipart>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn write_multipart<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpWriteMultipart,
    r: Reader
) -> Pin<Box<dyn Future<Output = Result<RpWriteMultipart>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn complete_multipart<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpCompleteMultipart
) -> Pin<Box<dyn Future<Output = Result<RpCompleteMultipart>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn abort_multipart<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    args: OpAbortMultipart
) -> Pin<Box<dyn Future<Output = Result<RpAbortMultipart>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,

source

fn blocking_create(&self, path: &str, args: OpCreate) -> Result<RpCreate>

source

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

source

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

source

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

source

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

Implementors§