pub struct PartitionedJournalStore<C, D> { /* private fields */ }Implementations§
Source§impl<C: AtomicJournalStore, D: AtomicJournalStore> PartitionedJournalStore<C, D>
impl<C: AtomicJournalStore, D: AtomicJournalStore> PartitionedJournalStore<C, D>
pub fn new( catalog: C, partitions: BTreeMap<String, D>, route: impl Fn(&str) -> String + Send + Sync + 'static, ) -> Result<Self, LinkError>
Sourcepub fn with_object_cache(self, bytes: usize) -> Self
pub fn with_object_cache(self, bytes: usize) -> Self
Cache verified immutable objects within a UTF-8 payload budget. Zero disables caching. Catalog reads and publication checks always stay fresh. Budget counts one byte per object/record plus record UTF-8 byte lengths; keys, containers, and caller-owned returned copies are additional memory.
Sourcepub fn with_chunks(
self,
options: JournalChunkOptions,
) -> Result<Self, LinkError>
pub fn with_chunks( self, options: JournalChunkOptions, ) -> Result<Self, LinkError>
Select bounded immutable chunks for new writes. Upgraded readers accept both layouts. Staging still reads and compares every selected object.
Trait Implementations§
Source§impl<C: AtomicJournalStore, D: AtomicJournalStore> AtomicJournalStore for PartitionedJournalStore<C, D>
impl<C: AtomicJournalStore, D: AtomicJournalStore> AtomicJournalStore for PartitionedJournalStore<C, D>
Auto Trait Implementations§
impl<C, D> !RefUnwindSafe for PartitionedJournalStore<C, D>
impl<C, D> !UnwindSafe for PartitionedJournalStore<C, D>
impl<C, D> Freeze for PartitionedJournalStore<C, D>where
C: Freeze,
impl<C, D> Send for PartitionedJournalStore<C, D>
impl<C, D> Sync for PartitionedJournalStore<C, D>
impl<C, D> Unpin for PartitionedJournalStore<C, D>where
C: Unpin,
impl<C, D> UnsafeUnpin for PartitionedJournalStore<C, D>where
C: UnsafeUnpin,
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