pub struct InMemoryAuditStorage { /* private fields */ }Expand description
In-memory audit storage (for testing and development)
Implementations§
Source§impl InMemoryAuditStorage
impl InMemoryAuditStorage
Sourcepub async fn all_events(&self) -> Vec<AuditEvent>
pub async fn all_events(&self) -> Vec<AuditEvent>
Get all events (for testing)
Trait Implementations§
Source§impl AuditStorage for InMemoryAuditStorage
impl AuditStorage for InMemoryAuditStorage
Source§fn store<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 AuditEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 AuditEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store an audit event
Source§impl Clone for InMemoryAuditStorage
impl Clone for InMemoryAuditStorage
Source§fn clone(&self) -> InMemoryAuditStorage
fn clone(&self) -> InMemoryAuditStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InMemoryAuditStorage
impl !RefUnwindSafe for InMemoryAuditStorage
impl Send for InMemoryAuditStorage
impl Sync for InMemoryAuditStorage
impl Unpin for InMemoryAuditStorage
impl !UnwindSafe for InMemoryAuditStorage
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