pub struct TracingAudit;Expand description
The default audit sink until #41 lands: one structured tracing line
per access, with no value in it.
Trait Implementations§
Source§impl Audit for TracingAudit
impl Audit for TracingAudit
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 Freeze for TracingAudit
impl RefUnwindSafe for TracingAudit
impl Send for TracingAudit
impl Sync for TracingAudit
impl Unpin for TracingAudit
impl UnsafeUnpin for TracingAudit
impl UnwindSafe for TracingAudit
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