Struct metadata_store::MetadataStore
source · 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 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