pub struct FsSparseStorage { /* private fields */ }Expand description
Filesystem storage: {base}/shard_{i}/ per shard, root files in {base}.
Implementations§
Trait Implementations§
Source§impl SparseShardStorage for FsSparseStorage
impl SparseShardStorage for FsSparseStorage
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 Freeze for FsSparseStorage
impl RefUnwindSafe for FsSparseStorage
impl Send for FsSparseStorage
impl Sync for FsSparseStorage
impl Unpin for FsSparseStorage
impl UnsafeUnpin for FsSparseStorage
impl UnwindSafe for FsSparseStorage
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