pub struct InMemoryStore { /* private fields */ }Implementations§
Source§impl InMemoryStore
impl InMemoryStore
pub fn new() -> Self
pub fn recent(&self, limit: usize) -> Vec<&Event>
pub fn by_type(&self, event_type: &EventType, limit: usize) -> Vec<&Event>
pub fn by_source(&self, source: &ActorId, limit: usize) -> Vec<&Event>
pub fn by_conversation( &self, conversation_id: &ConversationId, limit: usize, ) -> Vec<&Event>
pub fn ancestors( &self, event_id: &EventId, max_depth: usize, ) -> Result<Vec<&Event>>
pub fn descendants( &self, event_id: &EventId, max_depth: usize, ) -> Result<Vec<&Event>>
Trait Implementations§
Source§impl Default for InMemoryStore
impl Default for InMemoryStore
Auto Trait Implementations§
impl Freeze for InMemoryStore
impl RefUnwindSafe for InMemoryStore
impl Send for InMemoryStore
impl Sync for InMemoryStore
impl Unpin for InMemoryStore
impl UnsafeUnpin for InMemoryStore
impl UnwindSafe for InMemoryStore
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