pub trait AuditSink:
Send
+ Sync
+ Debug {
// Required method
fn write<'life0, 'async_trait>(
&'life0 self,
record: AuditRecord,
durable: bool,
) -> Pin<Box<dyn Future<Output = Result<(), AuditError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Destination for serialized audit records.
Required Methods§
Sourcefn write<'life0, 'async_trait>(
&'life0 self,
record: AuditRecord,
durable: bool,
) -> Pin<Box<dyn Future<Output = Result<(), AuditError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 self,
record: AuditRecord,
durable: bool,
) -> Pin<Box<dyn Future<Output = Result<(), AuditError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Write one record. When durable is true, return only after the record
has reached stable storage.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".