pub struct TestReceiptCollector { /* private fields */ }Expand description
In-memory sink for tests, bounded at TEST_RECEIPT_CAPACITY receipts.
Only the test collector is capped. A production sink is the caller’s own durable destination, and silently discarding audit records to stay inside a memory budget is not a decision this library gets to make for them.
Implementations§
Trait Implementations§
Source§impl Debug for TestReceiptCollector
impl Debug for TestReceiptCollector
Source§impl Default for TestReceiptCollector
impl Default for TestReceiptCollector
Source§fn default() -> TestReceiptCollector
fn default() -> TestReceiptCollector
Returns the “default value” for a type. Read more
Source§impl ReceiptSink for TestReceiptCollector
impl ReceiptSink for TestReceiptCollector
fn emit(&self, receipt: &RedactionReceipt) -> bool
Auto Trait Implementations§
impl !Freeze for TestReceiptCollector
impl RefUnwindSafe for TestReceiptCollector
impl Send for TestReceiptCollector
impl Sync for TestReceiptCollector
impl Unpin for TestReceiptCollector
impl UnsafeUnpin for TestReceiptCollector
impl UnwindSafe for TestReceiptCollector
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