Trait flechasdb::asyncdb::io::FileSystem
source · pub trait FileSystem {
type HashedFileIn: HashedFileIn;
// Required method
fn open_hashed_file<'life0, 'async_trait>(
&'life0 self,
path: impl 'async_trait + Into<String> + Send
) -> Pin<Box<dyn Future<Output = Result<Self::HashedFileIn, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn open_compressed_hashed_file<'life0, 'async_trait>(
&'life0 self,
path: impl 'async_trait + Into<String> + Send
) -> Pin<Box<dyn Future<Output = Result<CompressedHashedFileIn<Self::HashedFileIn>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Asynchronous file system.
Required Associated Types§
sourcetype HashedFileIn: HashedFileIn
type HashedFileIn: HashedFileIn
File whose contents can be verified with the hash.
Required Methods§
sourcefn open_hashed_file<'life0, 'async_trait>(
&'life0 self,
path: impl 'async_trait + Into<String> + Send
) -> Pin<Box<dyn Future<Output = Result<Self::HashedFileIn, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_hashed_file<'life0, 'async_trait>( &'life0 self, path: impl 'async_trait + Into<String> + Send ) -> Pin<Box<dyn Future<Output = Result<Self::HashedFileIn, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Opens a file whose contents can be verified with the hash.
Provided Methods§
sourcefn open_compressed_hashed_file<'life0, 'async_trait>(
&'life0 self,
path: impl 'async_trait + Into<String> + Send
) -> Pin<Box<dyn Future<Output = Result<CompressedHashedFileIn<Self::HashedFileIn>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn open_compressed_hashed_file<'life0, 'async_trait>( &'life0 self, path: impl 'async_trait + Into<String> + Send ) -> Pin<Box<dyn Future<Output = Result<CompressedHashedFileIn<Self::HashedFileIn>, Error>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Opens a compressed file whose contents can be verified with the hash.