pub struct MetadataStore { /* private fields */ }Implementations§
Source§impl MetadataStore
impl MetadataStore
pub fn shutdown(self)
Sourcepub fn recover<P: AsRef<Path>>(
storage_directory: P,
) -> Result<(MetadataStore, Vec<(u64, NonZeroU64, InlineArray)>)>
pub fn recover<P: AsRef<Path>>( storage_directory: P, ) -> Result<(MetadataStore, Vec<(u64, NonZeroU64, InlineArray)>)>
Returns the writer handle MetadataStore, a sorted array of metadata, and a sorted array
of free keys.
Sourcepub fn insert_batch<I: IntoIterator<Item = (u64, Option<(NonZeroU64, InlineArray)>)>>(
&self,
batch: I,
) -> Result<()>
pub fn insert_batch<I: IntoIterator<Item = (u64, Option<(NonZeroU64, InlineArray)>)>>( &self, batch: I, ) -> Result<()>
Write a batch of metadata. None for the second half of the outer tuple represents a
deletion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetadataStore
impl !RefUnwindSafe for MetadataStore
impl Send for MetadataStore
impl Sync for MetadataStore
impl Unpin for MetadataStore
impl !UnwindSafe for MetadataStore
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