Skip to main content

ObjectIO

Trait ObjectIO 

Source
pub trait ObjectIO:
    Send
    + Sync
    + Debug
    + 'static {
    type Error: Error + Send + Sync + 'static;
    type RangeSpec: Send + 'static;
    type HeaderMap: Send + 'static;
    type ObjectOptions: Send + Sync + 'static;
    type ObjectInfo: Send + 'static;
    type GetObjectReader: Send + 'static;
    type PutObjectReader: Send + 'static;

    // Required methods
    fn get_object_reader<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        range: Option<Self::RangeSpec>,
        h: Self::HeaderMap,
        opts: &'life3 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::GetObjectReader, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn put_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        data: &'life3 mut Self::PutObjectReader,
        opts: &'life4 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Source

type RangeSpec: Send + 'static

Source

type HeaderMap: Send + 'static

Source

type ObjectOptions: Send + Sync + 'static

Source

type ObjectInfo: Send + 'static

Source

type GetObjectReader: Send + 'static

Source

type PutObjectReader: Send + 'static

Required Methods§

Source

fn get_object_reader<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, range: Option<Self::RangeSpec>, h: Self::HeaderMap, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::GetObjectReader, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn put_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, data: &'life3 mut Self::PutObjectReader, opts: &'life4 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§