pub struct BlobSparseStorage<S: BlobStore> { /* private fields */ }Expand description
Blob storage: shard i is the SparseHandle namespace
Sparse_{name}/shard_{i}, root files live under Sparse_{name}. The
local cache under cache_base is disposable; the store is the truth.
Implementations§
Trait Implementations§
Source§impl<S: BlobStore> SparseShardStorage for BlobSparseStorage<S>
impl<S: BlobStore> SparseShardStorage for BlobSparseStorage<S>
fn create_shard(&self, shard_id: usize) -> Result<SparseHandle, String>
fn open_shard(&self, shard_id: usize) -> Result<SparseHandle, String>
fn write_root_file(&self, name: &str, data: &[u8]) -> Result<(), String>
fn read_root_file(&self, name: &str) -> Result<Vec<u8>, String>
fn root_file_exists(&self, name: &str) -> bool
Source§fn drop_storage(&self, num_shards: usize) -> Result<(), String>
fn drop_storage(&self, num_shards: usize) -> Result<(), String>
Destroy everything held for the index. Called by
ShardedSparseHandle::drop_index once the handle is closed.Auto Trait Implementations§
impl<S> Freeze for BlobSparseStorage<S>
impl<S> RefUnwindSafe for BlobSparseStorage<S>
impl<S> Send for BlobSparseStorage<S>
impl<S> Sync for BlobSparseStorage<S>
impl<S> Unpin for BlobSparseStorage<S>
impl<S> UnsafeUnpin for BlobSparseStorage<S>
impl<S> UnwindSafe for BlobSparseStorage<S>
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