pub trait ObjectStoreExt {
    // Required methods
    fn exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 Path
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn read_dir_all<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dir_path: impl 'async_trait + Into<&'life1 Path> + Send,
        unmodified_since: Option<DateTime<Utc>>
    ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, Result<ObjectMeta>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn exists<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 Path ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Returns true if the file exists.

source

fn read_dir_all<'life0, 'life1, 'async_trait>( &'life0 self, dir_path: impl 'async_trait + Into<&'life1 Path> + Send, unmodified_since: Option<DateTime<Utc>> ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, Result<ObjectMeta>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Read all files (start from base directory) recursively

unmodified_since can be specified to only return files that have not been modified since the given time.

Object Safety§

This trait is not object safe.

Implementors§