Struct flechasdb::io::LocalFileSystem
source · pub struct LocalFileSystem { /* private fields */ }Expand description
File system uses the local file system.
Implementations§
Trait Implementations§
source§impl FileSystem for LocalFileSystem
impl FileSystem for LocalFileSystem
§type HashedFileOut = LocalHashedFileOut
type HashedFileOut = LocalHashedFileOut
File that calculates the hash of its contents.
§type HashedFileIn = LocalHashedFileIn
type HashedFileIn = LocalHashedFileIn
File whose contents can be verified with the hash.
source§fn create_hashed_file(&self) -> Result<Self::HashedFileOut, Error>
fn create_hashed_file(&self) -> Result<Self::HashedFileOut, Error>
Creates a file that calculates the hash of its contents.
source§fn create_hashed_file_in(
&self,
path: impl AsRef<str>
) -> Result<Self::HashedFileOut, Error>
fn create_hashed_file_in( &self, path: impl AsRef<str> ) -> Result<Self::HashedFileOut, Error>
Creates a hashed file in a given directory.
source§fn open_hashed_file(
&self,
path: impl AsRef<str>
) -> Result<Self::HashedFileIn, Error>
fn open_hashed_file( &self, path: impl AsRef<str> ) -> Result<Self::HashedFileIn, Error>
Opens a file whose contents can be verified with a hash.
source§fn create_compressed_hashed_file(
&self
) -> Result<CompressedHashedFileOut<Self::HashedFileOut>, Error>
fn create_compressed_hashed_file( &self ) -> Result<CompressedHashedFileOut<Self::HashedFileOut>, Error>
Creates a compressed file that calculates the hash of its contents.
source§fn create_compressed_hashed_file_in(
&self,
path: impl AsRef<str>
) -> Result<CompressedHashedFileOut<Self::HashedFileOut>, Error>
fn create_compressed_hashed_file_in( &self, path: impl AsRef<str> ) -> Result<CompressedHashedFileOut<Self::HashedFileOut>, Error>
Creates a compressed hashed file in a given directory.
source§fn open_compressed_hashed_file(
&self,
path: impl AsRef<str>
) -> Result<CompressedHashedFileIn<Self::HashedFileIn>, Error>
fn open_compressed_hashed_file( &self, path: impl AsRef<str> ) -> Result<CompressedHashedFileIn<Self::HashedFileIn>, Error>
Opens a compressed file whose contents can be verified with a hash.
Auto Trait Implementations§
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