Skip to main content

ObjectStorePutExt

Trait ObjectStorePutExt 

Source
pub trait ObjectStorePutExt:
    Send
    + Sync
    + 'static {
    // Required method
    fn put_bytes<'life0, 'life1, 'async_trait>(
        &'life0 self,
        src: &'life1 Path,
        bytes: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn put_bytes<'life0, 'life1, 'async_trait>( &'life0 self, src: &'life1 Path, bytes: Bytes, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write the bytes at the given location in object store

Trait Implementations§

Source§

impl ObjectStorePutExt for Box<dyn ObjectStorePutExt>

Source§

fn put_bytes<'life0, 'life1, 'async_trait>( &'life0 self, src: &'life1 Path, bytes: Bytes, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write the bytes at the given location in object store

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ObjectStorePutExt for Arc<DynObjectStore>

Source§

fn put_bytes<'life0, 'life1, 'async_trait>( &'life0 self, src: &'life1 Path, bytes: Bytes, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl ObjectStorePutExt for Arc<dyn ObjectStorePutExt>

Source§

fn put_bytes<'life0, 'life1, 'async_trait>( &'life0 self, src: &'life1 Path, bytes: Bytes, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl ObjectStorePutExt for Box<dyn ObjectStorePutExt>

Source§

fn put_bytes<'life0, 'life1, 'async_trait>( &'life0 self, src: &'life1 Path, bytes: Bytes, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§