Skip to main content

ObjectStreamReader

Trait ObjectStreamReader 

Source
pub trait ObjectStreamReader:
    Send
    + Sync
    + Debug {
    // Required methods
    fn head<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 ObjectKey,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ObjectReadHead>, ObjectStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn read<'life0, 'async_trait>(
        &'life0 self,
        request: ObjectReadRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ObjectReadResponse>, ObjectStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Provider-neutral read port. Implementations must produce bounded chunks and stop provider reads when the returned stream is dropped.

Required Methods§

Source

fn head<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 ObjectKey, ) -> Pin<Box<dyn Future<Output = Result<Option<ObjectReadHead>, ObjectStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn read<'life0, 'async_trait>( &'life0 self, request: ObjectReadRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ObjectReadResponse>, ObjectStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§