pub struct LocalFileSystem;Expand description
Local File System as Object Store.
Trait Implementations§
Source§impl Debug for LocalFileSystem
impl Debug for LocalFileSystem
Source§impl ObjectStore for LocalFileSystem
impl ObjectStore for LocalFileSystem
Source§fn list_file<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<FileMetaStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_file<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<FileMetaStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns all the files in path
prefixSource§fn list_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
delimiter: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ListEntryStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
delimiter: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ListEntryStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns all the files in
prefix if the prefix is already a leaf dir,
or all paths between the prefix and the first occurrence of the delimiter if it is provided.Source§fn file_reader(&self, file: SizedFile) -> Result<Arc<dyn ObjectReader>>
fn file_reader(&self, file: SizedFile) -> Result<Arc<dyn ObjectReader>>
Get object reader for one file
Auto Trait Implementations§
impl Freeze for LocalFileSystem
impl RefUnwindSafe for LocalFileSystem
impl Send for LocalFileSystem
impl Sync for LocalFileSystem
impl Unpin for LocalFileSystem
impl UnwindSafe for LocalFileSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more