pub struct ChainAudit { /* private fields */ }Expand description
An audit sink that writes the chain into a store’s own database.
Implementations§
Trait Implementations§
Source§impl Audit for ChainAudit
impl Audit for ChainAudit
Source§fn record<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
event: &'life1 AuditEvent<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), SecretsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn record<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
event: &'life1 AuditEvent<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), SecretsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Records one access. A sink that writes to a database is async,
which is why this is: the store awaits it before returning,
so a value never reaches a caller whose access went unrecorded. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ChainAudit
impl !UnwindSafe for ChainAudit
impl Freeze for ChainAudit
impl Send for ChainAudit
impl Sync for ChainAudit
impl Unpin for ChainAudit
impl UnsafeUnpin for ChainAudit
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