pub struct RetainedDocumentStoreBuilder { /* private fields */ }Expand description
Adopt caller-owned rows without copying payloads. Finalization orders unique document identities and transfers the same allowance into immutable readers. Input decoding and mutable output allocations belong to their respective producers and callers.
Implementations§
Source§impl RetainedDocumentStoreBuilder
impl RetainedDocumentStoreBuilder
pub fn new(control: &StorageReadControl) -> Self
pub fn add_document( &mut self, id: DocId, document: StoredDocument, ) -> StorageBackendResult<()>
Sourcepub fn add_budgeted_document(
&mut self,
id: DocId,
document: Budgeted<StoredDocument>,
) -> StorageBackendResult<()>
pub fn add_budgeted_document( &mut self, id: DocId, document: Budgeted<StoredDocument>, ) -> StorageBackendResult<()>
Adopt a controlled producer’s complete tuple and existing payload reservation. The input lease must cover live map entries, field-name capacity and value payloads under this builder’s allowance. Entry capacity is reserved while that lease remains live.
Sourcepub fn add_retained_document(
&mut self,
id: DocId,
document: RetainedStoredDocument,
) -> StorageBackendResult<()>
pub fn add_retained_document( &mut self, id: DocId, document: RetainedStoredDocument, ) -> StorageBackendResult<()>
Transfer a retained tuple into this corpus, copying only when another reader still owns its fields.
pub fn finish(self) -> StorageBackendResult<RetainedDocumentStore>
Auto Trait Implementations§
impl Freeze for RetainedDocumentStoreBuilder
impl RefUnwindSafe for RetainedDocumentStoreBuilder
impl Send for RetainedDocumentStoreBuilder
impl Sync for RetainedDocumentStoreBuilder
impl Unpin for RetainedDocumentStoreBuilder
impl UnsafeUnpin for RetainedDocumentStoreBuilder
impl UnwindSafe for RetainedDocumentStoreBuilder
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