pub struct MemoryInjector { /* private fields */ }Implementations§
Source§impl MemoryInjector
impl MemoryInjector
pub fn new(store: Arc<Mutex<MemoryStore>>) -> Self
pub fn with_max_memories(self, max: usize) -> Self
pub fn with_min_relevance(self, threshold: f64) -> Self
pub fn inject_for_query(&self, query: &str) -> Option<MemoryInjection>
Auto Trait Implementations§
impl Freeze for MemoryInjector
impl RefUnwindSafe for MemoryInjector
impl Send for MemoryInjector
impl Sync for MemoryInjector
impl Unpin for MemoryInjector
impl UnsafeUnpin for MemoryInjector
impl UnwindSafe for MemoryInjector
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