pub struct DirectoryBlobStore { /* private fields */ }
Implementations§
Source§impl DirectoryBlobStore
impl DirectoryBlobStore
pub fn open_in_cwd(options: BlobStoreOptions) -> Result<Self>
pub fn open_path( path: impl AsRef<Path>, options: BlobStoreOptions, ) -> Result<Self>
pub fn open_tempdir( temp_dir: &TempDir, options: BlobStoreOptions, ) -> Result<Self>
pub fn open_dir(dir: Dir, options: BlobStoreOptions) -> Result<Self>
Trait Implementations§
Source§impl BlobStore for DirectoryBlobStore
impl BlobStore for DirectoryBlobStore
Source§fn contains_hash(&self, blob_hash: BlobHash) -> Result<bool>
fn contains_hash(&self, blob_hash: BlobHash) -> Result<bool>
Determines if the store contains a blob with the given BLAKE3 hash.
Source§fn get_by_hash(&self, blob_hash: BlobHash) -> Result<Option<Blob>>
fn get_by_hash(&self, blob_hash: BlobHash) -> Result<Option<Blob>>
Fetches a blob by its BLAKE3 hash.
Source§impl BlobStoreExt for DirectoryBlobStore
impl BlobStoreExt for DirectoryBlobStore
Source§impl IndexedBlobStore for DirectoryBlobStore
impl IndexedBlobStore for DirectoryBlobStore
Auto Trait Implementations§
impl !Freeze for DirectoryBlobStore
impl !RefUnwindSafe for DirectoryBlobStore
impl Send for DirectoryBlobStore
impl !Sync for DirectoryBlobStore
impl Unpin for DirectoryBlobStore
impl !UnwindSafe for DirectoryBlobStore
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