pub struct MemoryBusBuilder { /* private fields */ }Expand description
Builder for MemoryBus instances.
Implementations§
Source§impl MemoryBusBuilder
impl MemoryBusBuilder
Sourcepub fn new(volatile_config: VolatileConfig) -> Self
pub fn new(volatile_config: VolatileConfig) -> Self
Starts a new builder using the supplied volatile config.
Sourcepub fn with_journal(self, journal: Arc<dyn Journal>) -> Self
pub fn with_journal(self, journal: Arc<dyn Journal>) -> Self
Installs the journal implementation. This is required before calling build.
Sourcepub fn with_vector_store(self, store: Arc<dyn VectorStoreClient>) -> Self
pub fn with_vector_store(self, store: Arc<dyn VectorStoreClient>) -> Self
Installs an optional vector store client.
Sourcepub fn build(self) -> MemoryResult<MemoryBus>
pub fn build(self) -> MemoryResult<MemoryBus>
Auto Trait Implementations§
impl Freeze for MemoryBusBuilder
impl !RefUnwindSafe for MemoryBusBuilder
impl Send for MemoryBusBuilder
impl Sync for MemoryBusBuilder
impl Unpin for MemoryBusBuilder
impl !UnwindSafe for MemoryBusBuilder
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