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§impl Clone for MemoryAuditStore
impl Clone for MemoryAuditStore
Source§fn clone(&self) -> MemoryAuditStore
fn clone(&self) -> MemoryAuditStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryAuditStore
impl Debug for MemoryAuditStore
Source§impl Default for MemoryAuditStore
impl Default for MemoryAuditStore
Source§fn default() -> MemoryAuditStore
fn default() -> MemoryAuditStore
Returns the “default value” for a type. Read more
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