pub struct MemoryAuditStore { /* private fields */ }Expand description
In-memory AuditStore for tests and single-node bootstrapping. Cheap
to clone — shares one backing queue. Records keep insertion order.
Implementations§
Trait Implementations§
Source§impl AuditStore for MemoryAuditStore
impl AuditStore for MemoryAuditStore
Source§fn insert_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
records: &'life1 [AuditRecord],
ingested_at: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<AuditRow>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn insert_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
records: &'life1 [AuditRecord],
ingested_at: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<AuditRow>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn query_by_on_behalf_of<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 AuditQuery,
) -> Pin<Box<dyn Future<Output = Result<AuditPage, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_by_on_behalf_of<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 AuditQuery,
) -> Pin<Box<dyn Future<Output = Result<AuditPage, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
One page of rows attributable to
query.on_behalf_of, newest first
(at DESC, id DESC), honouring the since / method_prefix filters
and resuming from query.cursor. Read moreSource§impl Clone for MemoryAuditStore
impl Clone for MemoryAuditStore
Source§impl Debug for MemoryAuditStore
impl Debug for MemoryAuditStore
Auto Trait Implementations§
impl Freeze for MemoryAuditStore
impl RefUnwindSafe for MemoryAuditStore
impl Send for MemoryAuditStore
impl Sync for MemoryAuditStore
impl Unpin for MemoryAuditStore
impl UnsafeUnpin for MemoryAuditStore
impl UnwindSafe for MemoryAuditStore
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