pub struct NoopAuditSink;Expand description
A no-op audit sink that discards every event. Useful as a default when the host has not configured a sink, and for unit tests that do not care about events.
Trait Implementations§
Source§impl AuditSink for NoopAuditSink
impl AuditSink for NoopAuditSink
Source§fn record(&self, _event: CodeAuthEvent)
fn record(&self, _event: CodeAuthEvent)
Receive a security event. Called synchronously in the hot path; must
return quickly. Fire-and-forget semantics: codlet does not retry on
failure.
Source§impl Clone for NoopAuditSink
impl Clone for NoopAuditSink
Source§fn clone(&self) -> NoopAuditSink
fn clone(&self) -> NoopAuditSink
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 moreimpl Copy for NoopAuditSink
Source§impl Debug for NoopAuditSink
impl Debug for NoopAuditSink
Source§impl Default for NoopAuditSink
impl Default for NoopAuditSink
Source§fn default() -> NoopAuditSink
fn default() -> NoopAuditSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopAuditSink
impl RefUnwindSafe for NoopAuditSink
impl Send for NoopAuditSink
impl Sync for NoopAuditSink
impl Unpin for NoopAuditSink
impl UnsafeUnpin for NoopAuditSink
impl UnwindSafe for NoopAuditSink
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