pub struct MemoryAuditSink { /* private fields */ }Expand description
An AuditSink that appends entries to an in-memory, unbounded buffer.
Intended for tests that need to assert on emitted entries. Cloning shares the same underlying buffer. The buffer is unbounded — there is no backpressure — which is acceptable for the ephemeral memory driver.
Implementations§
Trait Implementations§
Source§impl AuditSink for MemoryAuditSink
impl AuditSink for MemoryAuditSink
Source§impl Clone for MemoryAuditSink
impl Clone for MemoryAuditSink
Source§fn clone(&self) -> MemoryAuditSink
fn clone(&self) -> MemoryAuditSink
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 moreSource§impl Default for MemoryAuditSink
impl Default for MemoryAuditSink
Source§fn default() -> MemoryAuditSink
fn default() -> MemoryAuditSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryAuditSink
impl !UnwindSafe for MemoryAuditSink
impl Freeze for MemoryAuditSink
impl Send for MemoryAuditSink
impl Sync for MemoryAuditSink
impl Unpin for MemoryAuditSink
impl UnsafeUnpin for MemoryAuditSink
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